From 3b50e25be2a76b86ca9ab39d4ea2cc62fe3d058ab71e58810d8d031b184b3da0 Mon Sep 17 00:00:00 2001 From: "Michal Hrusecky (old before rename to _miska_)" Date: Thu, 9 Feb 2012 11:07:26 +0000 Subject: [PATCH] fix OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=66 --- build.inc | 5 ++++- configuration-tweaks.tar.bz2 | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.inc b/build.inc index d9aa816..1918c73 100644 --- a/build.inc +++ b/build.inc @@ -3,7 +3,10 @@ %else %define socketpath /var/run/mysql %endif -export CFLAGS="$RPM_OPT_FLAGS -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -DFORCE_INIT_OF_VARS -fno-strict-aliasing -Wno-unused-parameter -Wno-unused-but-set-variable" +%if 0%{?suse_version} > 1140 +export WARN_DIS="$WARN_DIS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter " +%endif +export CFLAGS="$RPM_OPT_FLAGS -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -DFORCE_INIT_OF_VARS $WARN_DIS " export CXXFLAGS="$CFLAGS -fno-exceptions -fno-rtti" %if 0%{use_cmake} < 1 diff --git a/configuration-tweaks.tar.bz2 b/configuration-tweaks.tar.bz2 index 9b492f4..d13a8e2 100644 --- a/configuration-tweaks.tar.bz2 +++ b/configuration-tweaks.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7e49ec2351284050243f7425bc1491d0088627940132f7fe3d727b83e696fe82 +oid sha256:5574998e9d4324ff05c8bd698e0bd3cd92b1f449b855759dc6d6db5a486bf053 size 217