Fixed a bug in the Mac build.

This commit is contained in:
Pietro Gagliardi 2015-12-13 02:12:13 -05:00
parent 3f9862c472
commit 6bee3f2f71
1 changed files with 3 additions and 1 deletions

View File

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