From: Anas Nashif Date: Mon, 14 Jan 2013 14:02:35 +0000 (-0800) Subject: disable exceptions X-Git-Tag: accepted/tizen/common/20150403.125720~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b94c743d9113fa3bc45396edafd81e9162fad3a3;p=platform%2Fupstream%2Fglibc.git disable exceptions --- 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 ..