[SCM] FreeCAD packaging branch, master, updated. debian/0.11.3729.dfsg-1-28-g7989aa6

Anton Gladky gladky.anton at gmail.com
Thu Jun 9 18:19:58 UTC 2011


The following commit has been merged in the master branch:
commit 7989aa6858cec1c685c631c547290f11e11125f0
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Thu Jun 9 20:05:42 2011 +0200

    Update debian/rules, thanks to Bernhard R. Link

diff --git a/debian/rules b/debian/rules
index b8963ce..7315a50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,13 @@ MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+#Set flags, as suggested by Bernhard R. Link 
+# http://lists.alioth.debian.org/pipermail/debian-science-maintainers/2011-June/008157.html
+
+CFLAGS := -Wall $(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS)
+CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 
 override_dh_auto_configure:
 	dh_auto_configure -- --with-occ-include=/usr/include/opencascade \
@@ -16,7 +23,9 @@ override_dh_auto_configure:
 --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 --prefix=/usr/lib/freecad --mandir=/usr/share/man \
 --infodir=/usr/share/info --datadir=/usr/share/freecad \
---includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' CPPFLAGS='$(CPPFLAGS)' \
+LDFLAGS='$(LDFLAGS)'
 
 override_dh_auto_clean:
 	find -name '*.pyc' | xargs rm -f

-- 
FreeCAD packaging



More information about the debian-science-commits mailing list