Added run-time path to dynamically loadable libraries; '-Wl,rpath,$(DEST)/lib' to makefile. When compiling, use

make DEST=<path to library directory>
This commit is contained in:
vraatikka
2013-07-26 19:20:06 +03:00
parent 80b25b6270
commit ff8b432943
3 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@ all: testcomp testall
testcomp:
$(CC) $(CFLAGS) \
-L$(LOG_MANAGER_PATH) \
-Wl,-rpath,$(DEST)/lib \
-Wl,-rpath,$(LOG_MANAGER_PATH)/ \
-o testlog -DSS_DEBUG \
-I$(SOLIDDB_SRC_PATH)/include \
@ -30,5 +31,6 @@ testcomp:
-llog_manager $(LDLIBS) \
$(LOG_MANAGER_PATH)/skygw_utils.o \
testall:
- $(LAUNCH_DEBUGGER) $(TESTAPP) $(BACKGR)