packaging: Enable LTO and set visibility to hidden 54/236554/1 submit/tizen_base/20200730.112631
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Jun 2020 05:50:38 +0000 (14:50 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Jun 2020 05:53:03 +0000 (14:53 +0900)
Change-Id: I6a99a42e1822b3fc7f37b49d40da3b7f2909a50f
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/e2fsprogs.spec

index 64d8e66..7cb420a 100755 (executable)
@@ -74,8 +74,8 @@ cp %{SOURCE1001} .
 
 %build
 %{?asan:%restore_fcommon}
-export CFLAGS="${CFLAGS} -fPIE"
-export LDFLAGS="${LDFLAGS} -pie"
+export CFLAGS="${CFLAGS} -fPIE -fvisibility=hidden -flto "
+export LDFLAGS="${LDFLAGS} -pie -fvisibility=hidden -flto "
 %configure \
   --disable-evms \
   --with-root-prefix=''   \