aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/workaround_make_calling_configure_problem.patch
blob: d4e505e212b9759204a439c2ee04c537f3f36722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: fix ./configure dying thinking we're cross-compiling
 When building using debuild on Debian/squeeze or Ubuntu < quantal,
 ./configure somehow gets some LDFLAGS for shared libraries and uses them in
 the gcc tests.  The executable then fails to run since its a shared library,
 and ./configure thinks we're cross-compiling.  This patch forces no LDFLAGS.
 .
 pd-extended (0.43.4~20121016-1) UNRELEASED; urgency=low
 .
   * Initial release.
Author: Hans-Christoph Steiner <hans@eds.org>

--- pd-extended-0.43.4~20121016.orig/externals/Makefile
+++ pd-extended-0.43.4~20121016/externals/Makefile
@@ -574,6 +574,7 @@ $(gem_src)/Gem.dll: $(gem_src)/configure
 $(gem_src)/Gem.pd_linux: $(gem_src)/configure
 	cd $(gem_src) && ./configure \
 		CXXFLAGS="-DHAVE_S_STUFF_H" \
+		LDFLAGS= \
 		--prefix=$(prefix) \
 		--with-video=plugins \
 		--with-film=plugins \
@@ -613,7 +614,7 @@ $(externals_src)/gem2pdp/configure: $(ex
 	cd $(externals_src)/gem2pdp && autoconf
 
 $(externals_src)/gem2pdp/Makefile: $(externals_src)/gem2pdp/Makefile.in
-	cd $(externals_src)/gem2pdp && ./configure --with-pddir=$(pd_src) \
+	cd $(externals_src)/gem2pdp && ./configure LDFLAGS= --with-pddir=$(pd_src) \
 		--with-gemdir=$(gem_src)  --with-pdpdir=$(externals_src)/pdp
 
 gem2pdp: $(externals_src)/gem2pdp/configure $(externals_src)/gem2pdp/Makefile
@@ -788,7 +789,7 @@ $(IEM16_DIR)/configure: $(IEM16_DIR)/con
 
 $(IEM16_DIR)/Make.config: $(IEM16_DIR)/Make.config.in \
 $(IEM16_DIR)/configure
-	cd $(IEM16_DIR) && ./configure --disable-library \
+	cd $(IEM16_DIR) && ./configure LDFLAGS= --disable-library \
 		--with-pd=$(pd_src)
 
 iem16: $(IEM16_DIR)/Make.config
@@ -1356,7 +1357,7 @@ $(externals_src)/pdp/configure: $(extern
 	cd $(externals_src)/pdp && autoconf
 
 $(externals_src)/pdp/Makefile.config: $(externals_src)/pdp/configure $(externals_src)/pdp/Makefile.config.in
-	cd $(externals_src)/pdp && ./configure PD_CPPFLAGS="-I$(pd_src)/src" \
+	cd $(externals_src)/pdp && ./configure LDFLAGS= PD_CPPFLAGS="-I$(pd_src)/src" \
 		$(PDP_OPTIONS)
 
 $(externals_src)/pdp/pdp.$(EXTENSION): $(externals_src)/pdp/Makefile.config 
@@ -1745,6 +1746,7 @@ $(zexy_src)/configure: $(zexy_src)/confi
 
 $(zexy_src)/Makefile: $(zexy_src)/configure $(zexy_src)/Makefile.am $(zexy_src)/src/Makefile.am
 	cd $(zexy_src) && ./configure --disable-library \
+		LDFLAGS= \
 		--with-extension=$(EXTENSION) \
 		--prefix=$(prefix) \
 		--libdir=$(objectsdir) \
--- pd-extended-0.43.4~20121016.orig/externals/moocow/extended/Makefile	(revision 16399)
+++ pd-extended-0.43.4~20121016.orig/externals/moocow/extended/Makefile	(working copy)
@@ -36,7 +36,7 @@
 #	CFLAGS="$(shell echo $(CFLAGS))" ##-- works
 CONFIGURE_ARGS=\
 	CFLAGS="$(CFLAGS) -I/sw/include" \
-	LDFLAGS="$(LDFLAGS) -L$(pd_src)/src -L$(pd_src)/bin -L$(pd_src)/obj -L/sw/lib" \
+	LDFLAGS="-L$(pd_src)/src -L$(pd_src)/bin -L$(pd_src)/obj -L/sw/lib" \
 	--with-pd-include="$(pd_src)/src" \
 	--with-pd-dir="$(MOOCOW_BUILD)" \
 	--disable-dependency-tracking