diff options
author | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-03-04 09:03:29 +0900 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-03-09 20:48:28 -0800 |
commit | 5ac91c09dc5e332cd8fd8eaaea33d3c61d373f89 (patch) | |
tree | 657c2a28685ddd6138111701a8ec8d38fbfd14c6 | |
parent | 85409470de39ea5ecf28da41bfcfc4be4afe6a09 (diff) | |
download | obs-5ac91c09dc5e332cd8fd8eaaea33d3c61d373f89.tar.gz obs-5ac91c09dc5e332cd8fd8eaaea33d3c61d373f89.tar.bz2 obs-5ac91c09dc5e332cd8fd8eaaea33d3c61d373f89.zip |
add -Wl,--as-needed to global cflags (all the profiles)
‘--as-needed’ is a linker option. It affects linking of dynamic
libraries which follow the ‘—as-needed’ flag on the linker command
line. Normally, the linker will generate a runtime dependency against
all dynamic libraries mentioned on command line regardless of whether
libraries are actually needed or not. ‘--as-needed’ option causes
dependency to be only emitted for a library that at that point in the
link.
Change-Id: Id7306902cfcb495825b9f708b55364479a8fb545
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
-rw-r--r-- | Tizen:Base/_config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tizen:Base/_config b/Tizen:Base/_config index fee4863..1e3e914 100644 --- a/Tizen:Base/_config +++ b/Tizen:Base/_config @@ -170,7 +170,7 @@ Substitute: glibc-devel-32bit %endif ########## compilation flags ########## -%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 +%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--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 |