Explicitly set LD_LIBRARY_PATH (or PATH, if running on Windows) when invoking the test programs.
This commit is contained in:
parent
e5ea933f04
commit
da0321549d
@ -44,3 +44,9 @@ ifneq ($(STRIP),)
|
||||
XLDFLAGS += -Wl,--strip-all
|
||||
DLL_LDFLAGS += -Wl,--strip-all
|
||||
endif
|
||||
|
||||
ifneq ($(firstword $(filter MINGW32_NT-% MINGW64_NT-% CYGWIN_NT-%,$(shell uname))),)
|
||||
ENV_LDPATH := PATH
|
||||
else
|
||||
ENV_LDPATH := LD_LIBRARY_PATH
|
||||
endif
|
||||
|
@ -21,7 +21,7 @@ $(ALL_PATH):
|
||||
mkdir -p $@
|
||||
|
||||
test: all
|
||||
./$(BIN_FILE)
|
||||
env $(ENV_LDPATH)="$(realpath .):$(realpath ../../libhashset/lib)$(if $($(ENV_LDPATH)),:$($(ENV_LDPATH)))" ./$(BIN_FILE)
|
||||
|
||||
clean:
|
||||
rm -vf $(BIN_FILE)
|
||||
|
@ -21,7 +21,7 @@ $(ALL_PATH):
|
||||
mkdir -p $@
|
||||
|
||||
test: all
|
||||
./$(BIN_FILE)
|
||||
env $(ENV_LDPATH)="$(realpath .):$(realpath ../../libhashset/lib)$(if $($(ENV_LDPATH)),:$($(ENV_LDPATH)))" ./$(BIN_FILE)
|
||||
|
||||
clean:
|
||||
rm -vf $(BIN_FILE)
|
||||
|
Loading…
Reference in New Issue
Block a user