apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61417] New: apr-util MUST NOT use buildfalgs of installed apr
Date Tue, 15 Aug 2017 11:46:06 GMT

            Bug ID: 61417
           Summary: apr-util MUST NOT use buildfalgs of installed apr
           Product: APR
           Version: 1.6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: h.reindl@thelounge.net
  Target Milestone: ---


checking for APR... yes
  setting CPP to "gcc -m64 -O2 -g0 -mfpmath=sse -mavx -msse2avx
-march=sandybridge -mtune=sandybridge -fopenmp -pipe -fno-strict-aliasing
-fomit-frame-pointer -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -Wstack-protector -Wformat
-Werror=format-security -O3 -fno-strict-aliasing -fno-gcse-after-reload
-fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops
-fno-predictive-commoning -fno-tree-loop-distribute-patterns
-fno-unswitch-loops -fPIC -flto -ffat-lto-objects -fuse-ld=gold
-fuse-linker-plugin -E"

while wondring why my rpmbuild ½optflags extended with "-march=native
-mtune=native" for optimized builds in some outputs just ignore the flags it
looks like apr-util at buildtime sets them above to the same as used for
building apr

this is plain wrong and dangerous when all your spec files like below are
supposed to build native tuned binaries as well as -mtune=sandybridge because
when you have on the buildmachine -mtune=native apr installed your apr-util
also get built with -mtune=native which is NOT the intention when build without
"--with production"

please stop mangle around with build flags unasked

# command 'rpmbuild -bb apr-util.spec --with production' will tune for current
hardware while default stays 'sandybridge'

%if %{?_with_production:1}%{!?_with_production:0}
 %global rpmsuffix native
 %global build_native_release 1
 %global optflags %{optflags} -march=native -mtune=native
 %global rpmsuffix sandybridge
 %global build_native_release 0

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message