diff options
author | fanquake <fanquake@gmail.com> | 2021-11-16 10:01:38 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-14 12:08:27 +0100 |
commit | 094772656d71b3f5022ae292094e878da035de9e (patch) | |
tree | 25e0ef7721c5dc5a4970324a48f892141d8c3541 /depends/hosts/openbsd.mk | |
parent | 9e4fbebcc8e497016563e46de4c64fa094edab2d (diff) | |
download | bitcoin-094772656d71b3f5022ae292094e878da035de9e.tar.xz |
build: support LTO in depends
No Qt for now.
Diffstat (limited to 'depends/hosts/openbsd.mk')
-rw-r--r-- | depends/hosts/openbsd.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/hosts/openbsd.mk b/depends/hosts/openbsd.mk index 5988f24bff..c4a629e021 100644 --- a/depends/hosts/openbsd.mk +++ b/depends/hosts/openbsd.mk @@ -1,6 +1,11 @@ openbsd_CFLAGS=-pipe openbsd_CXXFLAGS=$(openbsd_CFLAGS) +ifneq ($(LTO),) +openbsd_CFLAGS += -flto +openbsd_LDFLAGS += -flto +endif + openbsd_release_CFLAGS=-O2 openbsd_release_CXXFLAGS=$(openbsd_release_CFLAGS) |