summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2018-10-05 16:55:47 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2020-04-07 11:51:26 +0900
commita214f139fb4942f5da84f398949c9471ce136c51 (patch)
tree41eb962f6295e3a461ff92357ed928335738721c
parentce4a0ff145bf814cf26fd52000a59d06ed910b44 (diff)
downloadobs-a214f139fb4942f5da84f398949c9471ce136c51.tar.gz
obs-a214f139fb4942f5da84f398949c9471ce136c51.tar.bz2
obs-a214f139fb4942f5da84f398949c9471ce136c51.zip
Add -frecord-gcc-switches to the global cflags
Record the command line used to invoke the compiler to the object file that is being created. Creates .GCC.command.line section for the ELF files that is going to be stripped into debuginfo by rpm. Compiler options can be retrieved from debuginfo like this: readelf -p .GCC.command.line libc-2.24.so.debug Change-Id: Ib7b4dff734e5d9a06853b2680036a79a6381fe3d
-rw-r--r--Tizen:Base/_config2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tizen:Base/_config b/Tizen:Base/_config
index eb469ab..a07833a 100644
--- a/Tizen:Base/_config
+++ b/Tizen:Base/_config
@@ -198,7 +198,7 @@ Substitute: glibc-devel-32bit
%endif
########## compilation flags ##########
-%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -Wformat-security -fmessage-length=0 -Wl,-z,relro,--as-needed
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -Wformat-security -fmessage-length=0 -frecord-gcc-switches -Wl,-z,relro,--as-needed
Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53