packaging: add support option for -fstack-protector-strong
authorDongkyun Son <dongkyun.s@samsung.com>
Tue, 28 Nov 2017 19:37:11 +0000 (04:37 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 5 Mar 2024 09:00:35 +0000 (18:00 +0900)
Change-Id: Ifabf235b9a4720aefb31ea52ec44d34000257d62
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/glibc.spec

index ef49164..bc1cc14 100644 (file)
@@ -268,7 +268,9 @@ echo "#define GITID \"%{git_id}\"" >> version.h
 #
 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//" | sed -e "s/-fno-omit-frame-pointer//" )
 BuildFlags="$BuildFlags -O2 -g -U_FORTIFY_SOURCE"
-BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##' -e 's#-ffortify=[0-9]*##')"
+BuildFlags="$(echo $BuildFlags | sed -e 's#-ffortify=[0-9]*##')"
+BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector-strong##')"
+BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##')"
 BuildFlags="$(echo $BuildFlags | sed -e 's/-Wa,-mimplicit-it=thumb//g' | sed -e 's/-mthumb//g')"
 # Turn off all -Wformat enable flags as there are glibc tests that explicitly
 # append -Wno-format and with enabled Wformat options that produced warnings