From b0fca15f475509195dbbcef059768bf2afdc2f85 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Sun, 1 Oct 2017 14:06:32 +0000 Subject: [PATCH] -fno-common breaks for now --- autospec/specfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autospec/specfiles.py b/autospec/specfiles.py index 0713e03..5cccc2c 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -433,7 +433,7 @@ class Specfile(object): if config.config_opts['use_clang']: flags.extend(["-O3"]) else: - flags.extend(["-O3", "-fno-semantic-interposition", "-falign-functions=32", "-fno-common", "-fno-math-errno", "-fno-trapping-math"]) + flags.extend(["-O3", "-fno-semantic-interposition", "-falign-functions=32", "-fno-math-errno", "-fno-trapping-math"]) if config.config_opts['use_lto']: flags.extend(["-O3", "-flto=4", "-ffat-lto-objects"]) self._write_strip("export AR=gcc-ar\n") @@ -755,7 +755,7 @@ class Specfile(object): self._write_strip("export CXXFLAGS=\"$CXXFLAGS -m64 -march=haswell\"") self._write_strip("export LDFLAGS=\"$LDFLAGS -m64 -march=haswell\"") self._write_strip("%reconfigure {0} {1} {2} " - " --libdir=/usr/lib64/haswell " + " --libdir=/usr/lib64/haswell --bindir=/usr/bin/haswell " .format(self.disable_static, config.extra_configure, config.extra_configure32))