Pass --export-* flags correctly to the linker, depending on platform.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 3 Jun 2015 17:59:06 +0000 (19:59 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 3 Jun 2015 17:59:06 +0000 (19:59 +0200)
src/Makefile.am

index d4b6627..ef8267d 100644 (file)
@@ -540,13 +540,13 @@ IFLAGS = \
        -I$(srcdir)/etpan
 
 if PLATFORM_WIN32
-arch_ldflags := -export-all-symbols
+arch_ldflags := -Wl,--export-all-symbols
 else
-arch_ldflags :=
+arch_ldflags := -Wl,--export-dynamic
 endif
 
 claws_mail_LDFLAGS = \
-       $(arch_ldflags) -export-dynamic $(claws_mail_res_ldflag)
+       $(arch_ldflags) $(claws_mail_res_ldflag)
 
 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
        $(etpan_library) \