aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/build.mk b/examples/build.mk
index bd2119a5..518f4d55 100644
--- a/examples/build.mk
+++ b/examples/build.mk
@@ -39,4 +39,4 @@ $(foreach B,$(CBINS_examples),$(eval \
$(foreach B,$(BINS_examples) $(CBINS_examples),$(eval \
examples/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \
- $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS_libqpdf) $(LIBS))))
+ $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS))))