Settled the OS X rpath stuff.

This commit is contained in:
Pietro Gagliardi 2015-12-13 02:28:51 -05:00
parent 6bee3f2f71
commit 41f1886b02
1 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,7 @@ SUFFIX = $(EXESUFFIX)
ifeq ($(TOOLCHAIN),gcc)
LDFLAGS += -L$(OUTDIR) -lui
# tell the dynamic loader to search in the executable path for shared objects
# TODO OS X complains if we do -rpath=$ORIGIN
# see if Unix complains too
# note: OS X's linker complains if we say -rpath= instead of -rpath,
LDFLAGS += -Wl,-rpath,'$$ORIGIN'
else
# TODO is there an equivalent to -L?