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 d4b66276bcf831b3ff65ba7bd1e57bc16c3dba81..ef8267d384043a5242024dc4747da89ac52d339f 100644 (file)
@@ -540,13 +540,13 @@ IFLAGS = \
        -I$(srcdir)/etpan
 
 if PLATFORM_WIN32
        -I$(srcdir)/etpan
 
 if PLATFORM_WIN32
-arch_ldflags := -export-all-symbols
+arch_ldflags := -Wl,--export-all-symbols
 else
 else
-arch_ldflags :=
+arch_ldflags := -Wl,--export-dynamic
 endif
 
 claws_mail_LDFLAGS = \
 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) \
 
 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
        $(etpan_library) \