]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
glibc: Add some more conifgure flags.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Aug 2012 18:19:35 +0000 (20:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Aug 2012 18:19:35 +0000 (20:19 +0200)
Enable experimental malloc and clean up redundant lines.

lfs/glibc

index 0ce510c9f82bd2fbaf3fceb25e8eb1144d99aedf..b215d35041a81f74d570e60fcb7cfb46ecaaff15 100644 (file)
--- a/lfs/glibc
+++ b/lfs/glibc
@@ -36,30 +36,42 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 #
 ifeq "$(ROOT)" ""
   TARGET = $(DIR_INFO)/$(THISAPP)
-  EXTRA_CONFIG = --prefix=/usr \
-    --disable-profile --enable-add-ons \
-    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
+  EXTRA_CONFIG = \
+       --prefix=/usr \
+       --libexecdir=/usr/lib/glibc
   EXTRA_MAKE =
   EXTRA_INSTALL =
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
-  EXTRA_CONFIG = --prefix=/tools \
-    --disable-profile --enable-add-ons \
-    --enable-kernel=2.6.0 --with-binutils=/tools/bin \
-    --without-gd --with-headers=/tools/include \
-    --without-selinux
+  EXTRA_CONFIG = \
+       --prefix=/tools \
+       --with-binutils=/tools/bin \
+       --with-headers=/tools/include \
+       --without-gd
   EXTRA_MAKE =
   EXTRA_INSTALL =
 endif
 
 EXTRA_CONFIG += --build=$(BUILDTARGET)
 
+# Enable some extra optimization for the glibc code.
+export CFLAGS := $(subst -O2,-O3,$(CFLAGS))
+
 ifeq "$(MACHINE_TYPE)" "arm"
        # Disable hardware FP for ARM.
        EXTRA_CONFIG += \
                --without-fp
 endif
 
+# Add some general configuration flags
+EXTRA_CONFIG += \
+       --disable-profile \
+       --enable-kernel=2.6.16 \
+       --enable-add-ons \
+       --without-selinux \
+       --enable-experimental-malloc \
+       --enable-bind-now
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################