blob: 35f7a0aa0ac599f65fefecfe5a58ba8c46b1a17f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-aa,v 1.3 2004/12/03 12:15:54 adam Exp $
--- configure.orig 2004-08-22 22:34:02.000000000 +0000
+++ configure
@@ -5306,7 +5306,13 @@ _ACEOF
*BSD)
# FreeBSD/OpenBSD/NetBSD
SHLIB_CC="$CC -fPIC"
- SHLIB_LD="ld -Bshareable -x"
+ if [ `echo __ELF__ | $CC -E - | grep -v '#'` = 1 ]; then
+ SHLIB_LD="ld -shared -x"
+ BEL_MOD_LD="$CC -Wl,-E $LDFLAGS"
+ else
+ SHLIB_LD="ld -Bshareable -x"
+ BEL_MOD_LD="$CC $LDFLAGS"
+ fi
;;
Darwin)
# Mac OS X
|