packaging: Enable LTO and set visibility to hidden 82/236382/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.5/unified/20211028.223234 accepted/tizen/7.0/unified/20221110.060535 accepted/tizen/7.0/unified/hotfix/20221116.110636 accepted/tizen/8.0/unified/20231005.094650 accepted/tizen/9.0/unified/20241030.232310 accepted/tizen/unified/20210609.082339 submit/tizen/20200730.113412 submit/tizen/20210608.105430 submit/tizen_6.5/20211028.163301 submit/tizen_base/20200730.112631 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorSlava Barinov <v.barinov@samsung.com>
Tue, 16 Jun 2020 14:08:34 +0000 (17:08 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Tue, 16 Jun 2020 14:25:27 +0000 (17:25 +0300)
Change-Id: I5114d12a171900d04f4d2a7afb4b7d67d9ca15c2
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/btrfs-progs.spec

index 021089f..32ca299 100644 (file)
@@ -24,8 +24,8 @@ Utilities needed to create and maintain btrfs file systems under Linux.
 cp %{SOURCE1001} .
 
 %build
-export CFLAGS="${CFLAGS} -fPIE"
-export LDFLAGS="${LDFLAGS} -pie"
+export CFLAGS="${CFLAGS} -fPIE -fvisibility=hidden -flto "
+export LDFLAGS="${LDFLAGS} -pie -fvisibility=hidden -flto "
 %autogen
 %configure --disable-documentation --disable-python --disable-zstd
 make %{?_smp_mflags}