Skip to content

Commit 674b6fd

Browse files
Merge pull request #129 from PFLAREProject/static_lib_tests_fix
Commit f9484ae broke the tests build…
2 parents db03cbf + 9ff2ad4 commit 674b6fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ FFLAGS += $(FFLAGS_INPUT)
3232
CPPFLAGS += $(CPPFLAGS_INPUT)
3333
FPPFLAGS += $(FPPFLAGS_INPUT)
3434

35-
# Link to pflare - order is important
35+
# Link to pflare - order is important
36+
# pflare must be first for static linking
3637
LDFLAGS += -Wl,-rpath,$(LIBDIR)
37-
LDLIBS += -L$(LIBDIR) -lpflare
38+
LDLIBS := -L$(LIBDIR) -lpflare $(LDLIBS)
3839

3940
EXISTING_LD := $(LD_LIBRARY_PATH)
4041
EXISTING_DYLD := $(DYLD_FALLBACK_LIBRARY_PATH)

0 commit comments

Comments
 (0)