mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 11:00:57 +00:00
Use LD_LIBRARY_PATH to run test with SHARED=1
In my tests on Linux, LD_PRELOAD does not seem to work, but LD_LIBRARY_PATH does.
This commit is contained in:
parent
9b06abe1d1
commit
c84d0e1ec1
|
@ -14,10 +14,8 @@ LOCAL_LDFLAGS = -L../library \
|
|||
|
||||
ifndef SHARED
|
||||
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
|
||||
CHECK_PRELOAD=
|
||||
else
|
||||
DEP=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT)
|
||||
CHECK_PRELOAD= LD_PRELOAD=$(DEP)
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
|
@ -438,7 +436,7 @@ check: $(APPS)
|
|||
for i in $(APPS); \
|
||||
do \
|
||||
echo " - $${i}"; \
|
||||
RESULT=`$(CHECK_PRELOAD) ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \
|
||||
RESULT=`LD_LIBRARY_PATH=../library ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \
|
||||
PASSED=`echo $$RESULT |grep PASSED`; \
|
||||
echo " $$RESULT"; \
|
||||
if [ "x$$PASSED" = "x" ]; \
|
||||
|
|
Loading…
Reference in a new issue