1 $NetBSD: patch-aa,v 1.10 2010/05/07 09:34:43 drochner Exp $
3 --- configure.orig 2009-09-20 20:45:09.000000000 +0000
5 @@ -117,7 +117,7 @@ for opt do
6 LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
9 - pthread="auto" # can't skip detection, since it differs by OS
14 @@ -137,7 +137,7 @@ for opt do
18 - LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
19 + LDFLAGS="$LDFLAGS -lX11"
20 CFLAGS="$CFLAGS -DVISUALIZE=1"
23 @@ -187,6 +187,10 @@ case $host_os in
25 LDFLAGS="$LDFLAGS -lm"
29 + LDFLAGS="$LDFLAGS -lm"
33 CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
34 @@ -250,7 +254,7 @@ case $host_cpu in
35 ASFLAGS="$ASFLAGS -f elf"
42 if [ "$SYS" = MACOSX ];then
43 @@ -264,11 +268,11 @@ case $host_cpu in
50 - ALTIVECFLAGS="$ALTIVECFLAGS -faltivec -fastf -mcpu=G4"
54 ALTIVECFLAGS="$ALTIVECFLAGS -maltivec -mabi=altivec -DHAVE_ALTIVEC_H"
57 @@ -354,7 +358,7 @@ grep -q BIGE conftest.o && CFLAGS="$CFLA
59 # autodetect options that weren't forced nor disabled
62 +libpthread="$PTHREAD_LDFLAGS $PTHREAD_LIBS"
63 if test "$pthread" = "auto" ; then
66 @@ -387,7 +391,7 @@ if test "$pthread" = "auto" ; then
69 if test "$pthread" = "yes" ; then
70 - CFLAGS="$CFLAGS -DHAVE_PTHREAD"
71 + CFLAGS="$CFLAGS -DHAVE_PTHREAD $PTHREAD_CFLAGS"
72 LDFLAGS="$LDFLAGS $libpthread"
75 @@ -424,7 +428,8 @@ if [ "$avis_input" = "yes" ] ; then
78 if [ "$pic" = "yes" ] ; then
79 - CFLAGS="$CFLAGS -fPIC"
81 + PICFLAG="-prefer-pic"
82 ASFLAGS="$ASFLAGS -DPIC"
83 # resolve textrels in the x86 asm
84 cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"