aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-01-14 01:51:31 +0100
committerJay Berkenbilt <ejb@ql.org>2018-01-14 01:53:52 +0100
commit6299c64cf3351fb1935319378aed421e26ed2f90 (patch)
tree1ed0ef9ee42de0fd6386c448cb3beab955e1a6f8 /libtests
parentec0087e3ce2ae7554098b3506378ca3eb9d87795 (diff)
downloadqpdf-6299c64cf3351fb1935319378aed421e26ed2f90.tar.zst
Use correct link directory order (fixes #158)
Make sure to link from the source tree before linking from the system. In many environments, this is necessary to allow a newly built qpdf to link properly instead of trying to link or resolve libraries from an older installed version.
Diffstat (limited to 'libtests')
-rw-r--r--libtests/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/build.mk b/libtests/build.mk
index 4579241d..1eebd8fb 100644
--- a/libtests/build.mk
+++ b/libtests/build.mk
@@ -43,4 +43,4 @@ $(foreach B,$(BINS_libtests),$(eval \
$(foreach B,$(BINS_libtests),$(eval \
libtests/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \
- $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS) $(LIBS_libqpdf))))
+ $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS) $(LIBS_libqpdf))))