--- /dev/null
+diff -ur pl-5.6.18.orig/packages/clib/configure pl-5.6.18/packages/clib/configure
+--- pl-5.6.18.orig/packages/clib/configure 2006-01-11 09:41:55.000000000 +1300
++++ pl-5.6.18/packages/clib/configure 2006-09-01 19:39:18.000000000 +1200
+@@ -3117,7 +3117,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3709,7 +3709,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/clib/maildrop/rfc2045/configure pl-5.6.18/packages/clib/maildrop/rfc2045/configure
+--- pl-5.6.18.orig/packages/clib/maildrop/rfc2045/configure 2005-07-25 02:37:57.000000000 +1200
++++ pl-5.6.18/packages/clib/maildrop/rfc2045/configure 2006-09-01 19:40:33.000000000 +1200
+@@ -3155,7 +3155,7 @@
+
+ if test "$GCC" = yes ; then
+ CXXFLAGS="$CXXFLAGS -Wall"
+- CFLAGS="$CFLAGS -Wall"
++ CFLAGS="$CFLAGS -fpic -Wall"
+ fi
+
+
+diff -ur pl-5.6.18.orig/packages/clib/maildrop/rfc822/configure pl-5.6.18/packages/clib/maildrop/rfc822/configure
+--- pl-5.6.18.orig/packages/clib/maildrop/rfc822/configure 2005-07-25 02:37:57.000000000 +1200
++++ pl-5.6.18/packages/clib/maildrop/rfc822/configure 2006-09-01 19:41:37.000000000 +1200
+@@ -3144,7 +3144,7 @@
+
+ if test "$GCC" = yes ; then
+ CXXFLAGS="$CXXFLAGS -Wall"
+- CFLAGS="$CFLAGS -Wall"
++ CFLAGS="$CFLAGS -fpic -Wall"
+ fi
+
+
+diff -ur pl-5.6.18.orig/packages/cppproxy/configure pl-5.6.18/packages/cppproxy/configure
+--- pl-5.6.18.orig/packages/cppproxy/configure 2006-01-23 22:29:29.000000000 +1300
++++ pl-5.6.18/packages/cppproxy/configure 2006-09-01 19:42:51.000000000 +1200
+@@ -3111,7 +3111,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3703,7 +3703,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/db/configure pl-5.6.18/packages/db/configure
+--- pl-5.6.18.orig/packages/db/configure 2006-07-31 19:54:07.000000000 +1200
++++ pl-5.6.18/packages/db/configure 2006-09-01 19:44:12.000000000 +1200
+@@ -3139,13 +3139,13 @@
+ fi
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+ CWFLAGS=
+ fi
+-CFLAGS="$CMFLAGS $CIFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+diff -ur pl-5.6.18.orig/packages/jpl/configure pl-5.6.18/packages/jpl/configure
+--- pl-5.6.18.orig/packages/jpl/configure 2006-08-09 19:58:24.000000000 +1200
++++ pl-5.6.18/packages/jpl/configure 2006-09-01 19:45:49.000000000 +1200
+@@ -3077,11 +3077,11 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -cc-options,-fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS="-Wall"
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/ltx2htm/configure pl-5.6.18/packages/ltx2htm/configure
+--- pl-5.6.18.orig/packages/ltx2htm/configure 2004-09-22 02:28:17.000000000 +1200
++++ pl-5.6.18/packages/ltx2htm/configure 2006-09-01 19:49:17.000000000 +1200
+@@ -1351,7 +1351,7 @@
+ CC=$PLLD
+ LD=$PLLD
+ LDSOFLAGS=-shared
+-
++CMFLAGS=-fpic
+ SO="$PLSOEXT"
+
+ TARGETS="unix.$SO socket.$SO cgi.$SO memfile.$SO"
+@@ -2925,7 +2925,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3455,7 +3455,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS=-O2
++ COFLAGS="$CFLAGS"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/nlp/configure pl-5.6.18/packages/nlp/configure
+--- pl-5.6.18.orig/packages/nlp/configure 2005-11-26 23:54:48.000000000 +1300
++++ pl-5.6.18/packages/nlp/configure 2006-09-01 19:50:31.000000000 +1200
+@@ -3111,7 +3111,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3703,7 +3703,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/odbc/configure pl-5.6.18/packages/odbc/configure
+--- pl-5.6.18.orig/packages/odbc/configure 2006-02-16 09:48:34.000000000 +1300
++++ pl-5.6.18/packages/odbc/configure 2006-09-01 19:52:33.000000000 +1200
+@@ -3147,7 +3147,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3739,7 +3739,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/semweb/configure pl-5.6.18/packages/semweb/configure
+--- pl-5.6.18.orig/packages/semweb/configure 2006-03-08 03:43:04.000000000 +1300
++++ pl-5.6.18/packages/semweb/configure 2006-09-01 19:53:47.000000000 +1200
+@@ -3145,7 +3145,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -4294,7 +4294,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O3 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/sgml/configure pl-5.6.18/packages/sgml/configure
+--- pl-5.6.18.orig/packages/sgml/configure 2006-02-04 04:38:50.000000000 +1300
++++ pl-5.6.18/packages/sgml/configure 2006-09-01 19:55:24.000000000 +1200
+@@ -3184,16 +3184,12 @@
+ fi
+
+ if test ! -z "$GCC"; then
+- if test $gmake = yes; then
+- COFLAGS='$(shell if test -r .coflags; then cat .coflags; else echo "-O2"; fi)'
+- else
+- COFLAGS="-O2 -fno-strict-aliasing"
+- fi
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS="$CWFLAGS -Wall"
+ else
+ COFLAGS=-O
+ fi
+-CFLAGS="$CMFLAGS"
++
+ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
+ echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
+ if test "${ac_cv_c_bigendian+set}" = set; then
+diff -ur pl-5.6.18.orig/packages/ssl/configure pl-5.6.18/packages/ssl/configure
+--- pl-5.6.18.orig/packages/ssl/configure 2006-02-04 04:38:50.000000000 +1300
++++ pl-5.6.18/packages/ssl/configure 2006-09-01 19:56:34.000000000 +1200
+@@ -3147,7 +3147,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3739,7 +3739,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/table/configure pl-5.6.18/packages/table/configure
+--- pl-5.6.18.orig/packages/table/configure 2005-01-31 23:47:37.000000000 +1300
++++ pl-5.6.18/packages/table/configure 2006-09-01 19:58:05.000000000 +1200
+@@ -3112,7 +3112,7 @@
+
+ fi
+
+-CFLAGS="$CMFLAGS"
++
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+@@ -3704,7 +3704,7 @@
+
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ CWFLAGS=-Wall
+ else
+ COFLAGS=-O
+diff -ur pl-5.6.18.orig/packages/xpce/src/configure pl-5.6.18/packages/xpce/src/configure
+--- pl-5.6.18.orig/packages/xpce/src/configure 2006-04-05 19:29:14.000000000 +1200
++++ pl-5.6.18/packages/xpce/src/configure 2006-09-01 19:59:11.000000000 +1200
+@@ -4391,7 +4391,7 @@
+ fi
+
+ if test ! -z "$GCC"; then
+- COFLAGS="-O2 -fno-strict-aliasing"
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ if test "$ac_cv_header_stdc" = "yes" || test "$syslibh" = "yes"; then
+ CWFLAGS=-Wall
+ else
+@@ -4401,7 +4401,7 @@
+ COFLAGS=-O
+ CWFLAGS=
+ fi
+-CFLAGS="$CMFLAGS"
++
+ echo "$as_me:$LINENO: checking for inline" >&5
+ echo $ECHO_N "checking for inline... $ECHO_C" >&6
+ if test "${ac_cv_c_inline+set}" = set; then
+diff -ur pl-5.6.18.orig/src/Makefile.in pl-5.6.18/src/Makefile.in
+--- pl-5.6.18.orig/src/Makefile.in 2006-08-25 20:33:32.000000000 +1200
++++ pl-5.6.18/src/Makefile.in 2006-09-01 19:36:22.000000000 +1200
+@@ -69,7 +69,7 @@
+ CWFLAGS=@CWFLAGS@
+ CIFLAGS=@CIFLAGS@
+ CMFLAGS=@CMFLAGS@
+-CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS)
++CFLAGS= $(CWFLAGS) $(COFLAGS) $(CMFLAGS)
+ LDFLAGS=@LDFLAGS@
+
+ PLFOREIGN=@PLFOREIGN@
+diff -ur pl-5.6.18.orig/src/configure pl-5.6.18/src/configure
+--- pl-5.6.18.orig/src/configure 2006-08-07 20:21:19.000000000 +1200
++++ pl-5.6.18/src/configure 2006-09-01 19:35:33.000000000 +1200
+@@ -3807,7 +3807,7 @@
+ esac
+ fi
+ else
+- COFLAGS=$CFLAGS
++ COFLAGS="$CFLAGS -fno-strict-aliasing"
+ fi
+
+
+@@ -14816,7 +14816,7 @@
+ LNLIBS="$LIBS"
+ fi
+
+-echo " CFLAGS=$CWFLAGS $COFLAGS $CIFLAGS $CMFLAGS"
++echo " CFLAGS=$CWFLAGS $COFLAGS $CMFLAGS"
+ echo " LDFLAGS=$LDFLAGS"
+ echo " LIBS=$LIBS"
+
+diff -ur pl-5.6.18.orig/src/libtai/Makefile.in pl-5.6.18/src/libtai/Makefile.in
+--- pl-5.6.18.orig/src/libtai/Makefile.in 2006-07-11 20:41:05.000000000 +1200
++++ pl-5.6.18/src/libtai/Makefile.in 2006-09-01 19:37:28.000000000 +1200
+@@ -29,7 +29,7 @@
+ CIFLAGS=@CIFLAGS@
+ CMFLAGS=@CMFLAGS@
+ LDFLAGS=@LDFLAGS@
+-CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS)
++CFLAGS= $(CWFLAGS) $(COFLAGS) $(CMFLAGS)
+
+ INSTALL=@INSTALL@
+ INSTALL_PROGRAM=@INSTALL_PROGRAM@
+diff -ur pl-5.6.18.orig/src/rc/Makefile.in pl-5.6.18/src/rc/Makefile.in
+--- pl-5.6.18.orig/src/rc/Makefile.in 2006-07-11 20:22:28.000000000 +1200
++++ pl-5.6.18/src/rc/Makefile.in 2006-09-01 19:36:56.000000000 +1200
+@@ -30,7 +30,7 @@
+ CIFLAGS=@CIFLAGS@
+ CMFLAGS=@CMFLAGS@
+ LDFLAGS=@LDFLAGS@
+-CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS)
++CFLAGS= $(CWFLAGS) $(COFLAGS) $(CMFLAGS)
+
+ INSTALL=@INSTALL@
+ INSTALL_PROGRAM=@INSTALL_PROGRAM@