[arch-commits] Commit in mysql/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Thu Nov 19 21:22:47 EST 2009


    Date: Thursday, November 19, 2009 @ 21:22:47
  Author: andrea
Revision: 59058

upgpkg: mysql 5.1.41-3
    fix build with gcc 4.4

Modified:
  mysql/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-19 23:17:23 UTC (rev 59057)
+++ PKGBUILD	2009-11-20 02:22:47 UTC (rev 59058)
@@ -6,7 +6,7 @@
 pkgbase=mysql
 pkgname=('libmysqlclient' 'mysql-clients' 'mysql')
 pkgver=5.1.41
-pkgrel=2
+pkgrel=3
 pkgdesc="A fast SQL database server"
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -25,6 +25,12 @@
 build() {
   cd ${srcdir}/${pkgbase}-${pkgver}
 
+  # fix build with gcc 4.4
+  # see http://bugs.archlinux.org/task/15242
+  # and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562
+  CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing"
+  CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing"
+
   ./configure --prefix=/usr \
     --libexecdir=/usr/sbin \
     --localstatedir=/var \



More information about the arch-commits mailing list