]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
glibc: Compile with -O2
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2018 22:35:30 +0000 (22:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2018 22:35:30 +0000 (22:35 +0000)
Instead of compiling with -O3, we now compile this with -O2
which is the default for the whole system. It looks like binaries
launch and perform a little bit slower than on some other
distributions, but there is no explanation to it.

This change will reduce the size of the libc and sibling libraries
which will hopefully allow to load them faster. Code might potentially
execute slower on some machines, but this impact might be less than
the startup time of the binaries.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
glibc/glibc.nm

index d4ec78b6bf76652a2757ee0f1ddfa0be9d509b53..012e5b3d8ae18fccba5bd7877110f9bbb1a70ec8 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = glibc
 version    = 2.28
-release    = 1
+release    = 2
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Base
@@ -45,7 +45,7 @@ build
        end
 
        # Build glibc with custom cflags
-       GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG
+       GLIBC_FLAGS = -O2 -g -DNDEBUG -pipe
 
        if "%{DISTRO_ARCH}" == "i686"
                GLIBC_FLAGS += -march=i686 -mtune=generic