summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2006-06-08 22:38:16 +0200
committerMike Hommey <glandium@debian.org>2006-06-08 22:38:16 +0200
commitef381f99921ea9fe00a07836b93f2a2bf865ca17 (patch)
tree62ec8494b6ba15713636b2731dd2f39cda762bc6 /debian/rules
parent6b7b7b4a4490d2cde163e9d5fe7c04ce540022b0 (diff)
parenta7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (diff)
downloadlibxml2-debian/2.6.26.dfsg-1.tar.gz
* New upstream release.debian/2.6.26.dfsg-1
* debian/rules: + Added -fno-strict-aliasing to the CFLAGS. + Use dpkg-architecture to feed configure. + Bumped shlibs to current version, since new symbol for XPath cache has been added. * debian/control: Bumped Standards-Version to 3.7.2.0. No changes required.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index d25fc6e..2d0a6c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+# These are used for cross-compiling and for saving the configure script
+# # from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
# The versions of python currently supported
PYVERS=$(subst -dev,,$(subst python,,$(filter python%-dev,$(shell sed -n '/^Build-Depends/s/,//gp' debian/control))))
@@ -14,7 +19,7 @@ CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
- CFLAGS += -O2
+ CFLAGS += -O2 -fno-strict-aliasing
endif
build: build-stamp
@@ -27,7 +32,7 @@ build-stamp:
done
# ./configure
- CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --with-history
+ CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --with-history
echo "all:" > example/Makefile
echo "install:" >> example/Makefile
echo "distclean:" >> example/Makefile
@@ -163,7 +168,7 @@ binary-arch: build install
dh_strip $(addprefix -ppython,$(addsuffix -libxml2, $(PYVERS)))
dh_compress -a -Xexamples/
dh_fixperms -a
- dh_makeshlibs -a -V 'libxml2 (>= 2.6.24)'
+ dh_makeshlibs -a -V 'libxml2 (>= 2.6.26)'
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a