[58/62] glibc: Drop any custom CFLAGS

Message ID 20200816102953.3881-58-michael.tremer@ipfire.org
State Accepted
Commit a7f6809c7fc104acf6b39549ecaca59ed1a277b6
Headers
Series [01/62] bison: Update to 3.7.1 |

Commit Message

Michael Tremer Aug. 16, 2020, 10:29 a.m. UTC
  glibc is nothing special and can and should be built with
the same flags than the rest of the system.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/glibc | 15 ---------------
 1 file changed, 15 deletions(-)
  

Patch

diff --git a/lfs/glibc b/lfs/glibc
index 7c12ea48a..546b53b12 100644
--- a/lfs/glibc
+++ b/lfs/glibc
@@ -51,21 +51,6 @@  else
 	libc_cv_c_cleanup=yes
 endif
 
-# Enable some extra optimization for the glibc code
-CFLAGS = -O3 -DNDEBUG -fasynchronous-unwind-tables -fPIC -DPIC
-
-ifeq "$(BUILD_ARCH)" "armv7hl"
-	CFLAGS += -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
-endif
-
-ifeq "$(BUILD_ARCH)" "i586"
-	CFLAGS += -march=i586 -mtune=generic -mindirect-branch=thunk -mfunction-return=thunk -mno-tls-direct-seg-refs
-endif
-
-ifeq "$(BUILD_ARCH)" "x86_64"
-	CFLAGS += -mindirect-branch=thunk -mfunction-return=thunk
-endif
-
 # Disable hardware FP for armv5tel
 ifeq "$(BUILD_ARCH)" "armv5tel"
 	EXTRA_CONFIG += \