[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.66-9-gae91c9e

Agustin Martin Domingo agmartin at debian.org
Mon Oct 10 13:33:29 UTC 2011


The following commit has been merged in the master branch:
commit 1ba3d6f5a5ffafbb49e438c224c81972705778a9
Author: Agustin Martin Domingo <agmartin at debian.org>
Date:   Thu Oct 6 20:02:01 2011 +0200

    debian/rules: get CFLAGS and LDFLAGS from dpkg-buildflags. Pass them to make.

diff --git a/debian/rules b/debian/rules
index 706f878..f76ec8b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,13 @@ DESTDIR   = $(CURDIR)/debian/tmp
 # -- For FHS transition
 MANDIR    = /usr/share/man
 
+# Get default build flags
+
+CFLAGS    = $(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS   = $(shell dpkg-buildflags --get LDFLAGS)
+
+export CFLAGS LDFLAGS
+
 # -- Create linuxdoc-tools copyright file by merging some files
 
 define build_ldt_copyright
@@ -50,7 +57,7 @@ build-stamp:
 		--with-perllibdir=/usr/share/perl5 \
 		--with-texdir=/usr/share/texmf/tex/latex/misc
 
-	$(MAKE) OPTIMIZE="-g -O2"
+	$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 
 	$(build_ldt_copyright)
 

-- 
linuxdoc-tools package for Debian.



More information about the debian-xml-sgml-commit mailing list