From 1cc2e2ec40fed1578ac3be02298bc75d80c2e201 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 22 Mar 2010 15:41:38 -0700 Subject: [PATCH] Build with -fno-strict-aliasing * Build with -fno-strict-aliasing. The upstream development branch has a better fix that selectively enables this for specific files with known problems, but be conservative for the stable release. --- debian/changelog | 3 +++ debian/rules | 17 +++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0acb6cfd0..b15a1a013 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ openafs (1.4.12+dfsg-2) UNRELEASED; urgency=low - [b78eeb0c] h_TossStuff_r: make sure host does not go away - [0583af32] volmonitor copy link before calling free - [eb799d07] Move non-executable stack assembly code to end of file + * Build with -fno-strict-aliasing. The upstream development branch has + a better fix that selectively enables this for specific files with + known problems, but be conservative for the stable release. -- Russ Allbery Mon, 22 Mar 2010 15:38:05 -0700 diff --git a/debian/rules b/debian/rules index fabef82ad..6a5e3f1c5 100755 --- a/debian/rules +++ b/debian/rules @@ -93,14 +93,15 @@ build-stamp: mv doc/man-pages/pod1/up.pod doc/man-pages/pod1/afs-up.pod rm -f doc/man-pages/man1/up.1 sh regen.sh - afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local sh \ - configure --with-afs-sysname=$(SYS_NAME) --disable-kernel-module \ - --prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc \ - --libexecdir=/usr/lib --localstatedir=/var/lib \ - --with-krb5-conf=/usr/bin/krb5-config --enable-supergroups \ - --enable-largefile-fileserver --enable-bos-new-config \ - --with-xslt-processor=xsltproc --with-html-xsl=$(HTML_XSL) \ - --disable-strip-binaries --enable-debug --enable-debug-lwp \ + afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local sh \ + configure CC="gcc -fno-strict-aliasing" \ + --with-afs-sysname=$(SYS_NAME) --disable-kernel-module \ + --prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc \ + --libexecdir=/usr/lib --localstatedir=/var/lib \ + --with-krb5-conf=/usr/bin/krb5-config --enable-supergroups \ + --enable-largefile-fileserver --enable-bos-new-config \ + --with-xslt-processor=xsltproc --with-html-xsl=$(HTML_XSL) \ + --disable-strip-binaries --enable-debug --enable-debug-lwp \ $(DEBIAN_OPT_FLAGS) $(SYSTEM) chmod a+x config.sub src/libafs/make_kbuild_makefile.pl \ src/config/make_vnode.pl -- 2.39.5