Skip to content

Commit b8b050a

Browse files
committed
build: add linker optimization flags to gitian descriptors
Any -O argument will enable optimizations in GNU ld. We can use -O2 here, as this matches our compile flags. Note that this would also enable additional optimizations if using the lld or gold linkers, when compared to -O0.
1 parent ed3b8ea commit b8b050a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/gitian-descriptors/gitian-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ script: |
4646
FAKETIME_PROGS="date ar ranlib nm"
4747
HOST_CFLAGS="-O2 -g"
4848
HOST_CXXFLAGS="-O2 -g"
49-
HOST_LDFLAGS_BASE="-static-libstdc++"
49+
HOST_LDFLAGS_BASE="-static-libstdc++ -Wl,-O2"
5050
5151
export QT_RCC_TEST=1
5252
export QT_RCC_SOURCE_DATE_OVERRIDE=1

0 commit comments

Comments
 (0)