Skip to content

Commit a428873

Browse files
committed
Always use -Wl,--export-all-symbols for libs
While this should be the default, it seems it's not the default when using Clang.
1 parent 15b9bf1 commit a428873

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

m4/buildsys.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl
2-
dnl Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016
2+
dnl Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2017
33
dnl Jonathan Schleifer <js@heap.zone>
44
dnl
55
dnl https://heap.zone/git/?p=buildsys.git
@@ -100,7 +100,7 @@ AC_DEFUN([BUILDSYS_PROG_IMPLIB], [
100100
cygwin* | mingw*)
101101
AC_MSG_RESULT(yes)
102102
PROG_IMPLIB_NEEDED='yes'
103-
PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
103+
PROG_IMPLIB_LDFLAGS='-Wl,--export-all-symbols,--out-implib,lib${PROG}.a'
104104
;;
105105
*)
106106
AC_MSG_RESULT(no)
@@ -135,7 +135,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
135135
mingw* | cygwin*)
136136
AC_MSG_RESULT(MinGW / Cygwin)
137137
LIB_CFLAGS=''
138-
LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
138+
LIB_LDFLAGS='-shared -Wl,--export-all-symbols,--out-implib,${SHARED_LIB}.a'
139139
LIB_PREFIX='lib'
140140
LIB_SUFFIX='.dll'
141141
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'

0 commit comments

Comments
 (0)