From: Dongkyun Son Date: Thu, 18 Jun 2020 05:56:35 +0000 (+0900) Subject: packaging: Enable LTO and set visibility to hidden X-Git-Tag: submit/tizen_base/20200720.234725^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b31b6c4cf8c35c259c5eeb747f279b5046f90e4;p=product%2Fupstream%2Fcoreutils.git packaging: Enable LTO and set visibility to hidden Change-Id: Ib85ac4ba9907bb0e868485cf656a638e777ca9e0 Signed-off-by: Dongkyun Son --- diff --git a/packaging/coreutils.spec b/packaging/coreutils.spec index e31b1ca..af7a59f 100644 --- a/packaging/coreutils.spec +++ b/packaging/coreutils.spec @@ -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