Added static linking to the test program.
This commit is contained in:
parent
d88233a0fb
commit
52917c7e71
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue