Tests should link against a library's dependencies as well as the library itself

This commit is contained in:
Laurence Withers 2007-09-11 13:33:55 +00:00
parent 8a85e8d563
commit d2b120e25a
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ TEST_LIBS=$@
for lib in ${TEST_LIBS}
do
cname="$(get_cname ${lib})"
LINK_LIBS="\${${cname}} ${LINK_LIBS}"
LINK_LIBS="\${${cname}} \${${cname}_DEP_CFLAGS} \${${cname}_DEP_LIBS} ${LINK_LIBS}"
if [ ! -e ../${lib}/build.lib ]
then
print_failure "src/${lib} is not a library"

View File

@ -8,7 +8,7 @@ TEST_LIBS=$@
for lib in ${TEST_LIBS}
do
cname="$(get_cname ${lib})"
LINK_LIBS="\${${cname}} ${LINK_LIBS}"
LINK_LIBS="\${${cname}} \${${cname}_DEP_CFLAGS} \${${cname}_DEP_LIBS} ${LINK_LIBS}"
if [ ! -e ../${lib}/build.lib ]
then
print_failure "src/${lib} is not a library"