Minor fixes to build system to make tests work.
This commit is contained in:
parent
920b871f49
commit
8be2d186f8
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue