$NetBSD: patch-aa,v 1.1 2003/05/25 21:03:26 jmc Exp $ --- configure.orig Thu Apr 10 01:35:14 2003 +++ configure Sun May 25 20:58:51 2003 @@ -1012,10 +1012,10 @@ cat >tmp/test-lib.c < $a" @@ -1106,7 +1106,7 @@ } int quux(int x) {return x;} EOT - if run $CC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS tmp/test-dynamic2.c tmp/test.so -o tmp/test + if run $CC -fPIC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS tmp/test-dynamic2.c tmp/test.so -o tmp/test then a=`tmp/test` log "underscore test: tmp/test => $a" @@ -1130,6 +1130,7 @@ if [ "$OK" ] ; then echo "yes." STATIC_MODULES=0 + CC_FLAGS="-fPIC $CC_FLAGS" else log "static modules selected" echo "no."