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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
$NetBSD: patch-aa,v 1.16 2012/11/28 16:29:53 adam Exp $
--- configure.orig 2012-11-27 21:45:03.000000000 +0000
+++ configure
@@ -466,6 +466,10 @@ case $host_os in
SYS="FREEBSD"
libm="-lm"
;;
+ dragonfly*)
+ SYS="DRAGONFLY"
+ LDFLAGS="$LDFLAGS -lm"
+ ;;
kfreebsd*-gnu)
SYS="FREEBSD"
define HAVE_MALLOC_H
@@ -567,7 +571,7 @@ case $host_cpu in
ASFLAGS="$ASFLAGS -f elf"
fi
;;
- x86_64)
+ x86_64|amd64)
ARCH="X86_64"
AS="yasm"
[ $compiler = GNU ] && CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS"
@@ -587,13 +591,14 @@ case $host_cpu in
fi
;;
powerpc|powerpc64)
- ARCH="PPC"
if [ $asm = auto ] ; then
define HAVE_ALTIVEC
AS="${AS-${cross_prefix}gcc}"
if [ $SYS = MACOSX ] ; then
+ ARCH="POWERPC"
CFLAGS="$CFLAGS -faltivec -fastf -mcpu=G4"
else
+ ARCH="PPC"
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
define HAVE_ALTIVEC_H
fi
@@ -739,7 +744,7 @@ fi
# pthread-win32 is lgpl, prevent its use if --disable-gpl is specified and targeting windows
[ "$SYS" = "WINDOWS" -a "$gpl" = "no" -a "$thread" = "auto" ] && thread="win32"
-libpthread=""
+libpthread="$PTHREAD_LDFLAGS $PTHREAD_LIBS"
if [ "$thread" = "auto" ]; then
thread="no"
case $SYS in
@@ -922,10 +927,11 @@ fi
cc_check "stdint.h" "" "uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3};" && define HAVE_VECTOREXT
if [ "$pic" = "yes" ] ; then
- CFLAGS="$CFLAGS -fPIC"
+ CFLAGS="$CFLAGS"
+ PICFLAG="-prefer-pic"
ASFLAGS="$ASFLAGS -DPIC"
# resolve textrels in the x86 asm
- cc_check stdio.h "-shared -Wl,-Bsymbolic" && SOFLAGS="$SOFLAGS -Wl,-Bsymbolic"
+ cc_check stdio.h "-Wl,-Bsymbolic" && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
[ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"
fi
|