From 52917c7e7133af4543f4e32591f666c7ab0a4ae5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 29 May 2016 04:57:06 -0400 Subject: [PATCH] Added static linking to the test program. --- build/GNUmakefile.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/