--- src/modules/rlm_perl/configure	Thu Dec 25 15:28:18 2008
+++ src/modules/rlm_perl/configure.good	Thu Dec 25 15:50:52 2008
@@ -3249,7 +3249,7 @@
 	  fi
 
 	  old_LIBS="$LIBS"
-	  LIBS="$old_LIBS `perl -MExtUtils::Embed -e ldopts`"
+	  LIBS="$old_LIBS `perl -MExtUtils::Embed -e ldopts` -fPIC -mimpure-text"
 	  cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -3295,7 +3295,7 @@
       conftest$ac_exeext conftest.$ac_ext
 
 	  if test "x$BROKEN" = "x"; then
-        	perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
+        	perl_ldflags='`perl -MExtUtils::Embed -e ldopts` -fPIC -mimpure-text'
 	  else
 		fail="$fail libperl.so"
 		targetname=
