From b94c743d9113fa3bc45396edafd81e9162fad3a3 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 14 Jan 2013 06:02:35 -0800 Subject: [PATCH] disable exceptions --- packaging/glibc.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/glibc.spec b/packaging/glibc.spec index f8450a5..8130a89 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -252,8 +252,8 @@ echo "#define GITID \"%{git_id}\"" >> version.h # # Default CFLAGS and Compiler # -BuildFlags=$(echo %{optflags} | sed -e "s/-Wp,-D_FORTIFY_SOURCE=2//g" | sed -e "s/-ffast-math//" | sed -e "s/atom/i686/g" ) -BuildFlags="$BuildFlags -U_FORTIFY_SOURCE" +BuildFlags=$(echo %{optflags} | sed -e "s/-Wp,-D_FORTIFY_SOURCE=2//g" | sed -e "s/-ffast-math//" | sed -e "s/atom/i686/g" | sed -e "s/-fexceptions//" ) +BuildFlags="$BuildFlags -O2 -g -U_FORTIFY_SOURCE" BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##' -e 's#-ffortify=[0-9]*##')" BuildCC="%__cc" BuildCCplus="%__cxx" @@ -311,7 +311,7 @@ configure_and_build_glibc() { --enable-multi-arch \ %endif --enable-kernel=%{enablekernel} \ - --enable-bind-now + --enable-bind-now --enable-obsolete-rpc # explicitly set CFLAGS to use the full CFLAGS (not the reduced one for configure) make %{?_smp_mflags} #CFLAGS="$cflags" BUILD_CFLAGS="$cflags" cd .. -- 2.7.4