From: Anas Nashif Date: Thu, 27 Dec 2012 00:40:40 +0000 (-0800) Subject: cleanup spec X-Git-Tag: accepted/tizen/common/20150403.125720~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f00375e07b12dac02aa350327a3336a8b840460;p=platform%2Fupstream%2Fglibc.git cleanup spec --- diff --git a/packaging/glibc.spec b/packaging/glibc.spec index 846af01..c1606e8 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -252,7 +252,7 @@ echo "#define GITID \"%{git_id}\"" >> version.h # # Default CFLAGS and Compiler # -BuildFlags=$(echo %{optflags} | sed -e "s/-Wp,-D_FORTIFY_SOURCE=2//g" | sed -s "s/-ffast-math//") +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 $BuildFlags | sed -e 's#-fstack-protector##' -e 's#-ffortify=[0-9]*##')" BuildCC="%__cc" @@ -313,7 +313,7 @@ configure_and_build_glibc() { --enable-kernel=%{enablekernel} \ --enable-bind-now # explicitly set CFLAGS to use the full CFLAGS (not the reduced one for configure) - make %{?_smp_mflags} CFLAGS="$cflags" BUILD_CFLAGS="$cflags" + make %{?_smp_mflags} #CFLAGS="$cflags" BUILD_CFLAGS="$cflags" cd .. }