mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
$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=""
|