v2-0001-Make-building-with-clang-s-LTO-work-on-macOS.backpatch

text/plain

Filename: v2-0001-Make-building-with-clang-s-LTO-work-on-macOS.backpatch
Type: text/plain
Part: 1
Message: Re: Build with LTO / -flto on macOS
--- a/src/makefiles/Makefile.darwin
+++ b/src/makefiles/Makefile.darwin
@@ -5,6 +5,8 @@ DLSUFFIX = .so
 # env var name to use in place of LD_LIBRARY_PATH
 ld_library_path_var = DYLD_LIBRARY_PATH
 
+export_dynamic = -Wl,-export_dynamic
+
 ifdef PGXS
   BE_DLLLIBS = -bundle_loader $(bindir)/postgres
 else