1 | | --- examples/build.mk.orig 2011-08-11 14:55:06.000000000 -0500 |
2 | | +++ examples/build.mk 2012-01-03 02:17:19.000000000 -0600 |
3 | | @@ -36,4 +36,4 @@ |
4 | | |
5 | | $(foreach B,$(BINS_examples) $(CBINS_examples),$(eval \ |
6 | | examples/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \ |
7 | | - $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS_libqpdf) $(LIBS)))) |
8 | | + $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS)))) |
9 | | --- libtests/build.mk.orig 2011-08-11 14:55:06.000000000 -0500 |
10 | | +++ libtests/build.mk 2012-01-03 02:16:59.000000000 -0600 |
11 | | @@ -37,4 +37,4 @@ |
12 | | |
13 | | $(foreach B,$(BINS_libtests),$(eval \ |
14 | | libtests/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \ |
15 | | - $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS) $(LIBS_libqpdf)))) |
16 | | + $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS) $(LIBS_libqpdf)))) |
17 | | --- make/libtool.mk.orig 2011-08-11 14:55:06.000000000 -0500 |
18 | | +++ make/libtool.mk 2012-01-03 02:04:20.000000000 -0600 |
19 | | @@ -31,18 +31,20 @@ |
20 | | # 1 2 |
21 | | # Usage: $(call compile,src,includes) |
22 | | define compile |
23 | | - $(CXX) $(CPPFLAGS) $(CXXFLAGS) \ |
24 | | + $(CXX) $(CXXFLAGS) \ |
25 | | $(call depflags,$(basename $(call src_to_obj,$(1)))) \ |
26 | | $(foreach I,$(2),-I$(I)) \ |
27 | | + $(CPPFLAGS) \ |
28 | | -c $(1) -o $(call src_to_obj,$(1)) |
29 | | endef |
30 | | |
31 | | # 1 2 |
32 | | # Usage: $(call c_compile,src,includes) |
33 | | define c_compile |
34 | | - $(CC) $(CPPFLAGS) $(CFLAGS) \ |
35 | | + $(CC) $(CFLAGS) \ |
36 | | $(call depflags,$(basename $(call c_src_to_obj,$(1)))) \ |
37 | | $(foreach I,$(2),-I$(I)) \ |
38 | | + $(CPPFLAGS) \ |
39 | | -c $(1) -o $(call c_src_to_obj,$(1)) |
40 | | endef |
41 | | |
42 | | @@ -50,9 +52,10 @@ |
43 | | # Usage: $(call libcompile,src,includes) |
44 | | define libcompile |
45 | | $(LIBTOOL) --quiet --mode=compile \ |
46 | | - $(CXX) $(CPPFLAGS) $(CXXFLAGS) \ |
47 | | + $(CXX) $(CXXFLAGS) \ |
48 | | $(call libdepflags,$(basename $(call src_to_obj,$(1)))) \ |
49 | | $(foreach I,$(2),-I$(I)) \ |
50 | | + $(CPPFLAGS) \ |
51 | | -c $(1) -o $(call src_to_obj,$(1)); \ |
52 | | $(call fixdeps,$(basename $(call src_to_obj,$(1)))) |
53 | | endef |
54 | | @@ -61,9 +64,10 @@ |
55 | | # Usage: $(call libcompile,src,includes) |
56 | | define c_libcompile |
57 | | $(LIBTOOL) --quiet --mode=compile \ |
58 | | - $(CC) $(CPPFLAGS) $(CXXFLAGS) \ |
59 | | + $(CC) $(CXXFLAGS) \ |
60 | | $(call libdepflags,$(basename $(call c_src_to_obj,$(1)))) \ |
61 | | $(foreach I,$(2),-I$(I)) \ |
62 | | + $(CPPFLAGS) \ |
63 | | -c $(1) -o $(call c_src_to_obj,$(1)); \ |
64 | | $(call fixdeps,$(basename $(call src_to_obj,$(1)))) |
65 | | endef |
66 | | @@ -80,14 +84,14 @@ |
67 | | # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) |
68 | | define makelib |
69 | | $(LIBTOOL) --mode=link \ |
70 | | - $(CXX) $(CXXFLAGS) -o $(2) $(1) $(3) $(4) \ |
71 | | + $(CXX) $(CXXFLAGS) -o $(2) $(1) $(4) $(3) \ |
72 | | -rpath $(libdir) -version-info $(5):$(6):$(7) |
73 | | endef |
74 | | |
75 | | # 1 2 3 4 |
76 | | # Usage: $(call makebin,objs,binary,ldflags,libs) |
77 | | define makebin |
78 | | - $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(1) -o $(2) $(3) $(4) |
79 | | + $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(1) -o $(2) $(4) $(3) |
80 | | endef |
81 | | |
82 | | # Install target |
83 | | --- qpdf/build.mk.orig 2011-08-11 14:55:06.000000000 -0500 |
84 | | +++ qpdf/build.mk 2012-01-03 02:13:13.000000000 -0600 |
85 | | @@ -30,4 +30,4 @@ |
86 | | |
87 | | $(foreach B,$(BINS_qpdf) $(CBINS_qpdf),$(eval \ |
88 | | qpdf/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \ |
89 | | - $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS_libqpdf) $(LIBS)))) |
90 | | + $(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS)))) |
91 | | --- zlib-flate/build.mk.orig 2011-08-11 14:55:06.000000000 -0500 |
92 | | +++ zlib-flate/build.mk 2012-01-03 02:16:39.000000000 -0600 |
93 | | @@ -19,4 +19,4 @@ |
94 | | $(call compile,$<,$(INCLUDES_zlib-flate)) |
95 | | |
96 | | zlib-flate/$(OUTPUT_DIR)/$(call binname,zlib-flate): $(OBJS_zlib-flate) |
97 | | - $(call makebin,$(OBJS_zlib-flate),$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS_libqpdf) $(LIBS)) |
98 | | + $(call makebin,$(OBJS_zlib-flate),$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS)) |