packaging: Enable LTO and set visibility to hidden 55/236555/1 accepted/tizen_6.0_base_tool_hotfix tizen_6.0_base_hotfix accepted/tizen/6.0/base/20201029.110014 accepted/tizen/6.0/base/tool/20201029.111707 accepted/tizen/6.0/base/tool/hotfix/20201030.124514 accepted/tizen/6.0/base/tool/hotfix/20201102.085631 accepted/tizen/base/tool/20200803.000022 submit/tizen_6.0_base/20201029.184802 submit/tizen_6.0_base_hotfix/20201030.192502 submit/tizen_6.0_base_hotfix/20201102.162702 submit/tizen_base/20200720.234725 submit/tizen_base/20200726.235201 submit/tizen_base/20201207.055733 submit/tizen_base/20201208.051231 submit/tizen_base/20201208.051733 tizen_6.0.m2_release
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Jun 2020 05:56:35 +0000 (14:56 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Jun 2020 05:56:35 +0000 (14:56 +0900)
Change-Id: Ib85ac4ba9907bb0e868485cf656a638e777ca9e0
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/coreutils.spec

index e31b1ca534e5de7472f146ff5ff93d9e63cb000f..af7a59f1a089a6ab31b18fd565b14b09ca4c09a4 100644 (file)
@@ -57,8 +57,8 @@ su - run a command with substitute user and group ID
 %build
 cp %{SOURCE1001} .
 
-export CFLAGS+=" -fPIC"
-export LDFLAGS+=" -Wl,-z,relro -pie"
+export CFLAGS+=" -fPIC -fvisibility=hidden -flto "
+export LDFLAGS+=" -Wl,-z,relro -pie -fvisibility=hidden -flto "
 
 cp build-aux/config.sub ../mktemp-1.5
 cp build-aux/config.guess ../mktemp-1.5