diff options
| author | fanquake <[email protected]> | 2020-01-15 12:20:50 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-04-12 18:36:56 +0800 |
| commit | b8b050a8d642e38c81d1e451750c2c8db92fee5e (patch) | |
| tree | bbb958125cb554e3806b80958c4f7bd3bd87a352 | |
| parent | Merge #17595: guix: Enable building for `x86_64-w64-mingw32` target (diff) | |
| download | discoin-b8b050a8d642e38c81d1e451750c2c8db92fee5e.tar.xz discoin-b8b050a8d642e38c81d1e451750c2c8db92fee5e.zip | |
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.
| -rw-r--r-- | contrib/gitian-descriptors/gitian-linux.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gitian-descriptors/gitian-linux.yml b/contrib/gitian-descriptors/gitian-linux.yml index 5d190de54..6f79d10e6 100644 --- a/contrib/gitian-descriptors/gitian-linux.yml +++ b/contrib/gitian-descriptors/gitian-linux.yml @@ -46,7 +46,7 @@ script: | FAKETIME_PROGS="date ar ranlib nm" HOST_CFLAGS="-O2 -g" HOST_CXXFLAGS="-O2 -g" - HOST_LDFLAGS_BASE="-static-libstdc++" + HOST_LDFLAGS_BASE="-static-libstdc++ -Wl,-O2" export QT_RCC_TEST=1 export QT_RCC_SOURCE_DATE_OVERRIDE=1 |