blob: 124231dbf71019f7a6b5a31b17942193ebb4a3ba (
plain)
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
|
$NetBSD: patch-aa,v 1.5 2007/10/18 09:15:33 obache Exp $
--- configure.orig 2006-07-09 23:13:54.000000000 +0000
+++ configure
@@ -4924,7 +4924,7 @@ _ACEOF
fi
;;
- *BSD)
+ *BSD | DragonFly)
# FreeBSD/OpenBSD/NetBSD all support dlopen() and have had plenty of
# testing with Eggdrop.
WEIRD_OS="no"
@@ -5306,10 +5306,16 @@ _ACEOF
# Solaris defines (2^31)-1 as the limit for random() rather than RAND_MAX.
RANDMAX="0x7FFFFFFF"
;;
- *BSD)
+ *BSD | DragonFly)
# 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
|