| 1 |
Description: Do not touch config.h.in and stamp-h.in. Also export dpkg build flags. |
| 2 |
Author: Francesco Paolo Lovergine <[email protected]> |
| 3 |
Forwarded: not needed |
| 4 |
|
| 5 |
--- proftpd.orig/Makefile.in |
| 6 |
+++ proftpd/Makefile.in |
| 7 |
@@ -272,10 +272,10 @@ |
| 8 |
chmod a+x configure config.sub install-sh modules/glue.sh |
| 9 |
|
| 10 |
# autoheader might not change config.h.in, so touch a stamp file. |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
+#${srcdir}/config.h.in: stamp-h.in |
| 16 |
+#${srcdir}/stamp-h.in: configure.in acconfig.h |
| 17 |
+# cd ${srcdir} && autoheader |
| 18 |
+# echo timestamp > ${srcdir}/stamp-h.in |
| 19 |
|
| 20 |
config.h: stamp-h |
| 21 |
stamp-h: config.h.in config.status |
| 22 |
--- proftpd.orig/Make.rules.in |
| 23 |
+++ proftpd/Make.rules.in |
| 24 |
@@ -16,7 +16,7 @@ |
| 25 |
AR=@AR@ |
| 26 |
CC=@CC@ |
| 27 |
PLATFORM=@OSREL@ @OSTYPE@ |
| 28 |
|
| 29 |
+LDFLAGS=@LDFLAGS@ @LIBDIRS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 30 |
LIBEXECDIR=@LIBEXECDIR@ |
| 31 |
LIBS=@LIBS@ @LIBRARIES@ @LIBADD_DL@ |
| 32 |
LIBTOOL=@LIBTOOL@ |
| 33 |
@@ -50,12 +50,12 @@ |
| 34 |
|
| 35 |
# Preprocessor compilation flags. |
| 36 |
# |
| 37 |
|
| 38 |
+CPPFLAGS=@CPPFLAGS@ -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) $(shell dpkg-buildflags --get CPPFLAGS) |
| 39 |
ADDL_CPPFLAGS=@ADDL_CPPFLAGS@ |
| 40 |
|
| 41 |
# Our compiler flags. |
| 42 |
# |
| 43 |
|
| 44 |
+CFLAGS=@CFLAGS@ $(shell dpkg-buildflags --get CFLAGS) |
| 45 |
DEFINES=$(PLATFORM) |
| 46 |
|
| 47 |
# Module-specific libraries to link against. These libraries may be |
| 48 |
--- proftpd.orig/contrib/mod_dnsbl/Makefile.in |
| 49 |
+++ proftpd/contrib/mod_dnsbl/Makefile.in |
| 50 |
@@ -21,7 +21,7 @@ |
| 51 |
# Necessary redefinitions |
| 52 |
INCLUDES=-I. -I../.. -I../../include -I$(top_srcdir)/../../include @INCLUDES@ |
| 53 |
CPPFLAGS=$(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) |
| 54 |
|
| 55 |
+LDFLAGS=-L../../lib @LDFLAGS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 56 |
|
| 57 |
.c.o: |
| 58 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< |
| 59 |
--- proftpd.orig/contrib/mod_load/Makefile.in |
| 60 |
+++ proftpd/contrib/mod_load/Makefile.in |
| 61 |
@@ -22,7 +22,7 @@ |
| 62 |
# Necessary redefinitions |
| 63 |
INCLUDES=-I. -I../.. -I../../include -I$(top_srcdir)/../../include @INCLUDES@ |
| 64 |
CPPFLAGS=$(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) |
| 65 |
|
| 66 |
+LDFLAGS=-L../../lib @LDFLAGS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 67 |
|
| 68 |
.c.o: |
| 69 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< |
| 70 |
--- proftpd.orig/contrib/mod_sftp/Makefile.in |
| 71 |
+++ proftpd/contrib/mod_sftp/Makefile.in |
| 72 |
@@ -31,7 +31,7 @@ |
| 73 |
# Necessary redefinitions |
| 74 |
INCLUDES=-I. -I../.. -I../../include -I$(top_srcdir)/../../include @INCLUDES@ |
| 75 |
CPPFLAGS=$(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) |
| 76 |
|
| 77 |
+LDFLAGS=-L../../lib @LDFLAGS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 78 |
|
| 79 |
# We special-case the building of umac128.o in order to use preprocessor |
| 80 |
# tricks to get the implementation, rather than making it be all in runtime. |
| 81 |
--- proftpd.orig/contrib/mod_snmp/Makefile.in |
| 82 |
+++ proftpd/contrib/mod_snmp/Makefile.in |
| 83 |
@@ -21,7 +21,7 @@ |
| 84 |
# Necessary redefinitions |
| 85 |
INCLUDES=-I. -I../.. -I../../include -I$(top_srcdir)/../../include @INCLUDES@ |
| 86 |
CPPFLAGS=$(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) |
| 87 |
|
| 88 |
+LDFLAGS=-L../../lib @LDFLAGS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 89 |
|
| 90 |
.c.o: |
| 91 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< |
| 92 |
--- proftpd.orig/contrib/mod_wrap2/Makefile.in |
| 93 |
+++ proftpd/contrib/mod_wrap2/Makefile.in |
| 94 |
@@ -21,7 +21,7 @@ |
| 95 |
# Necessary redefinitions |
| 96 |
INCLUDES=-I. -I../.. -I../../include -I$(top_srcdir)/../../include @INCLUDES@ |
| 97 |
CPPFLAGS=$(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES) |
| 98 |
|
| 99 |
+LDFLAGS=-L../../lib @LDFLAGS@ $(shell dpkg-buildflags --get LDFLAGS) |
| 100 |
|
| 101 |
.c.o: |
| 102 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< |