Add support for making relocatable packages using $ORIGIN

This commit is contained in:
Eelco Dolstra 2014-03-03 15:19:04 +01:00
parent 4eac3b2471
commit a376762848
3 changed files with 9 additions and 5 deletions

1
lib.mk
View file

@ -34,6 +34,7 @@ ifeq ($(BUILD_SHARED_LIBS), 1)
ifneq ($(OS), Darwin)
GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
endif
SET_RPATH_TO_LIBS ?= 1
endif