diff --git a/build/GNUmakefile.test b/build/GNUmakefile.test index 1179f8e8..c0bc0001 100644 --- a/build/GNUmakefile.test +++ b/build/GNUmakefile.test @@ -14,7 +14,11 @@ NAME = test SUFFIX = $(EXESUFFIX) ifeq ($(TOOLCHAIN),gcc) - LDFLAGS += -L$(OUTDIR) -lui + 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/