Added static linking to the test program.

This commit is contained in:
Pietro Gagliardi 2016-05-29 04:57:06 -04:00
parent d88233a0fb
commit 52917c7e71
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ NAME = test
SUFFIX = $(EXESUFFIX)
ifeq ($(TOOLCHAIN),gcc)
ifeq (,$(STATIC))
LDFLAGS += -L$(OUTDIR) -lui
else
LDFLAGS += -L$(OUTDIR) -lui $(NATIVE_UI_LDFLAGS)
endif
# tell the dynamic loader to search in the executable path for shared objects
# note: OS X's linker complains if we say -rpath= instead of -rpath,
# also note that OS X doesn't use $ORIGIN - see http://jorgen.tjer.no/post/2014/05/20/dt-rpath-ld-and-at-rpath-dyld/