[med-svn] r5180 - trunk/packages/autodocksuite/trunk/debian

Steffen Möller moeller at alioth.debian.org
Sun Aug 22 21:26:03 UTC 2010


Author: moeller
Date: 2010-08-22 21:26:02 +0000 (Sun, 22 Aug 2010)
New Revision: 5180

Modified:
   trunk/packages/autodocksuite/trunk/debian/rules
Log:
Setting extra flags for the compilation and linking,
most commented out, to prepare for the advent of gcc 4.5 and 4.6


Modified: trunk/packages/autodocksuite/trunk/debian/rules
===================================================================
--- trunk/packages/autodocksuite/trunk/debian/rules	2010-08-21 13:31:04 UTC (rev 5179)
+++ trunk/packages/autodocksuite/trunk/debian/rules	2010-08-22 21:26:02 UTC (rev 5180)
@@ -4,10 +4,14 @@
 #export DH_VERBOSE=1
 export DH_OPTIONS
 
+# see http://www.gentoo.org/proj/en/qa/asneeded.xml
+LDFLAGS="-Wl,--as-needed"
+
 CFLAGS = -Wall -g
 
-# link time optimisation
+# link time optimisation - as soon as gcc-4.5 hits the archive
 #CFLAGS += -flto
+#LDFLAGS += -flto
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
@@ -15,14 +19,18 @@
 	CFLAGS += -O2 
 endif
 
+CFLAGS=-Winline -finline-functions
+
+# the suggested const is not working sufficiently, for gcc-4.6 and higher
 #CFLAGS += -Wsuggest-attribute=const
+
 CXXFLAGS=$(CFLAGS)
 
 configure: configure-stamp
 configure-stamp: $(QUILT_STAMPFN)
 	dh_testdir
 	for d in autogrid autodock; do \
-		( cd $$d && autoreconf -i && ./configure CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" --prefix=/usr ) \
+		( cd $$d && autoreconf -i && ./configure LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" --prefix=/usr ) \
 	done
 
 	touch configure-stamp




More information about the debian-med-commit mailing list