diff options
author | Noel Grandin <noel@peralex.com> | 2020-09-17 14:20:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-17 17:55:23 +0200 |
commit | 7adf79c2dd4af72e6af321336ef79914364bc882 (patch) | |
tree | 81f0f60512403601e5764a12657794086a9f7012 /extensions | |
parent | d75c5b38911557173c54a78f42ff220ab3918573 (diff) |
fix LTO+mergedlibs on windows
Change-Id: I3d95d566db76e14532945b881b1847ea8c7e3153
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102946
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Executable_twain32shim.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/Executable_twain32shim.mk b/extensions/Executable_twain32shim.mk index 6f53ca3924ab..3ac3ce8d43ed 100644 --- a/extensions/Executable_twain32shim.mk +++ b/extensions/Executable_twain32shim.mk @@ -13,6 +13,16 @@ $(eval $(call gb_Executable_set_targettype_gui,twain32shim,YES)) $(eval $(call gb_Executable_set_x86,twain32shim,YES)) +# when building with link-time optimisation on, we need to turn it off for the helper +ifeq ($(ENABLE_LTO),TRUE) +$(eval $(call gb_Executable_add_cxxflags,twain32shim,\ + -GL- \ +)) +$(eval $(call gb_Executable_add_ldflags,twain32shim,\ + -LTCG:OFF \ +)) +endif + $(eval $(call gb_Executable_use_externals,twain32shim,\ sane_headers \ )) |