Minor fixes to build system to make tests work.

This commit is contained in:
Laurence Withers 2006-07-24 15:56:11 +01:00
parent 920b871f49
commit 8be2d186f8
2 changed files with 10 additions and 2 deletions

View File

@ -29,10 +29,14 @@ then
then then
echo " Compiling" echo " Compiling"
SONAME="${LIB_BASE}.so.${SOMAJOR}.${SOMINOR}"
do_cmd ${CC} ${CFLAGS} -shared -fpic -o "${LIB}" \ do_cmd ${CC} ${CFLAGS} -shared -fpic -o "${LIB}" \
-Wl,-soname,${LIB_BASE}.so.${SOMAJOR}.${SOMINOR} \ -Wl,-soname,${SONAME} \
${SRC} ${SO_LIBS} || return 1 ${SRC} ${SO_LIBS} || return 1
# make tests work
do_cmd ln -sf $(basename ${LIB}) obj/${SONAME} || return 1
print_success "Library built" print_success "Library built"
else else
print_success "Library up to date" print_success "Library up to date"

View File

@ -29,10 +29,14 @@ then
then then
echo " Compiling" echo " Compiling"
SONAME="${LIB_BASE}.so.${SOMAJOR}.${SOMINOR}"
do_cmd ${CXX} ${CFLAGS} -shared -fpic -o "${LIB}" \ do_cmd ${CXX} ${CFLAGS} -shared -fpic -o "${LIB}" \
-Wl,-soname,${LIB_BASE}.so.${SOMAJOR}.${SOMINOR} \ -Wl,-soname,${SONAME} \
${SRC} ${SO_LIBS} || return 1 ${SRC} ${SO_LIBS} || return 1
# make tests work
do_cmd ln -sf $(basename ${LIB}) obj/${SONAME} || return 1
print_success "Library built" print_success "Library built"
else else
print_success "Library up to date" print_success "Library up to date"