$NetBSD: patch-aa,v 1.2 2004/10/02 22:09:46 adrianp Exp $ --- configure.orig 2004-10-02 16:05:10.000000000 +0100 +++ configure 2004-10-02 16:11:19.000000000 +0100 @@ -1310,10 +1310,10 @@ cat >$CONFTMP/test-lib.c < $a" @@ -1404,7 +1404,7 @@ } int quux(int x) {return x;} EOT - if run $CC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS $CONFTMP/test-dynamic2.c $CONFTMP/test.so -o $CONFTMP/test + if run $CC -fPIC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS $CONFTMP/test-dynamic2.c $CONFTMP/test.so -o $CONFTMP/test then a=`$CONFTMP/test` log "underscore test: $CONFTMP/test => $a" @@ -1428,6 +1428,7 @@ if [ "$OK" ] ; then echo "yes." STATIC_MODULES=0 + CC_FLAGS="-fPIC $CC_FLAGS" else log "static modules selected" echo "no."