From 0fbfc438e3c784e3d6a6fd6f63abb30c8eb39600 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Feb 15 2016 15:11:38 +0000 Subject: Add also -fPIC in CXXFLAGS (configure breaks on x86_64 without it) --- diff --git a/syncevolution.spec b/syncevolution.spec index 5700ebc..f21e761 100644 --- a/syncevolution.spec +++ b/syncevolution.spec @@ -96,12 +96,12 @@ Akonadi backend for %{name}. sed -i '/^ACLOCAL_AMFLAGS/{ /m4-repo/!s/$/ -I m4-repo/ }' Makefile*.am %build +export CXXFLAGS="$CXXFLAGS -std=gnu++98 -fPIC" + intltoolize --automake --copy --force autoreconf -fiv (cd src/synthesis && autoreconf -fi && ./autogen.sh) -export CXXFLAGS="$CXXFLAGS -std=gnu++98" - %configure --enable-libsoup --enable-dbus-service --enable-shared \ --disable-static --enable-gtk=3 --enable-gui --with-gio-gdbus \ --enable-dav --disable-static --enable-gtk=3 --enable-gui \ @@ -205,7 +205,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Mon Feb 15 2016 Milan Crha - 1:1.5.1-9 - Add patch for GCC 6 build break -- Use -std=gnu++98 in CXXFLAGS +- Use -std=gnu++98 and -fPIC in CXXFLAGS * Sun Feb 14 2016 David Tardon - 1:1.5.1-9 - rebuild for cppunit 1.13.2