]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Removing unwanted -grecord-gcc-switches , relro in cflags and adding -fPIC
authorSiddharth Sharma <siddharth@redhat.com>
Thu, 14 May 2015 19:11:38 +0000 (19:11 +0000)
committerKefu Chai <kchai@redhat.com>
Sat, 8 Aug 2015 15:21:31 +0000 (23:21 +0800)
src/Makefile-env.am

index aded67a7209f33286a772971f107105657677351..e900d1a205b358a5ed5de114e5c1df4884d80b31 100644 (file)
@@ -55,13 +55,12 @@ HARDENING_CFLAGS = \
                    -O2 \
                    -g \
                    -pipe \
-                   -Wl,-z,relro \
                    -Wall \
                    -Wp,-D_FORTIFY_SOURCE=2 \
                    -fexceptions \
                    --param=ssp-buffer-size=4 \
-                   -grecord-gcc-switches \
-                   -fPIE
+                   -fPIE \
+                   -fPIC
 
 SET_STACK_PROTECTOR_STRONG = $(shell expr `gcc -dumpversion` \>= 4.9)