summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorMartin Storsjö <[email protected]>2020-04-11 00:04:18 +0300
committerJohn Stebbins <[email protected]>2020-06-17 08:36:26 -0700
commit466b5b7019ff4f5f5e99b3b6e65fa447eabb05d3 (patch)
tree54ce5fb3198f27c52e4c8fbfdfa252b8e38517cb /gtk/src
parentf04e441f7553e980e4f4144e8f94080c370f3164 (diff)
gtk: Remove unnecessary linker flags when targeting mingw
The --export-dynamic flag is a no-op when targeting mingw; when used, binutils ld prints this warning: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols? The "--exclude-libs ALL" flag also is unnecessary; as this is an exe, there's no symbols being exported automatically, so there's no need to exclude anything. LLD's COFF/mingw backend doesn't implement these flags, and this fixes linking ghb.exe with it.
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/Makefile.am b/gtk/src/Makefile.am
index 147df424e..4aa8bbef3 100644
--- a/gtk/src/Makefile.am
+++ b/gtk/src/Makefile.am
@@ -115,7 +115,7 @@ ghb_SOURCES = \
if MINGW
ghb_LDFLAGS = \
- -mwindows -Wl,--export-dynamic -Wl,--exclude-libs,ALL
+ -mwindows
else
ghb_LDFLAGS = \
-Wl,--export-dynamic -Wl,--exclude-libs,ALL