1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
$NetBSD: patch-configure.in,v 1.2 2013/10/27 20:33:18 joerg Exp $
--- configure.in.orig 2013-01-19 11:44:05.000000000 +0000
+++ configure.in
@@ -595,7 +595,7 @@ then
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
case "`$CC --version < /dev/null`" in
- *3.4*) CFLAGS="-fno-gcse -fno-crossjumping $CFLAGS" ;;
+ *gcc*3.4*) CFLAGS="-fno-gcse -fno-crossjumping $CFLAGS" ;;
esac
case "$target_cpu" in
i*86*)
@@ -1193,8 +1193,8 @@ case "$target_os" in
if test "$have_dl" = "yes"
then
SO="so"
- SHLIB_LD="$CC -shared -export-dynamic"
- SHLIB_CXX_LD="$CXX -shared -export-dynamic"
+ SHLIB_LD="$CC -shared -Wl,-export-dynamic"
+ SHLIB_CXX_LD="$CXX -shared -Wl,-export-dynamic"
DO_SECOND_LD=""
LIBS="$LIBS -ldl"
case "$target_cpu" in
@@ -1263,8 +1263,8 @@ case "$target_os" in
then
#this tells ld to export all non-static symbols,
#otherwise no external predicates.
- SHLIB_LD="$CC -shared -export-dynamic"
- SHLIB_CXX_LD="$CXX -shared -export-dynamic"
+ SHLIB_LD="$CC -shared -Wl,-export-dynamic"
+ SHLIB_CXX_LD="$CXX -shared -Wl,-export-dynamic"
DO_SECOND_LD=""
SO="sl"
SHLIB_CFLAGS="+z $CFLAGS"
@@ -1391,8 +1391,8 @@ dnl Linux has both elf and a.out, in thi
LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
SHLIB_CFLAGS="-fPIC $CFLAGS"
SHLIB_CXXFLAGS="-fPIC $CXXFLAGS"
- SHLIB_LD="$CC -shared -export-dynamic"
- SHLIB_CXX_LD="$CXX -shared -export-dynamic"
+ SHLIB_LD="$CC -shared -Wl,-export-dynamic"
+ SHLIB_CXX_LD="$CXX -shared -Wl,-export-dynamic"
DO_SECOND_LD=""
SO="so"
INSTALL_DLLS=""
|