Tests should link against a library's dependencies as well as the library itself
This commit is contained in:
parent
8a85e8d563
commit
d2b120e25a
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue