Index: configure
--- configure.orig	2009-08-10 12:58:11 +0200
+++ configure	2009-08-11 19:53:03 +0200
@@ -18178,7 +18178,7 @@
   else
     { $as_echo "$as_me:$LINENO: result: GNU" >&5
 $as_echo "GNU" >&6; }
-    SPECIAL_CXXFLAGS="-DBUGGYGPP -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith "
+    SPECIAL_CXXFLAGS="-DBUGGYGPP"
   fi
   CXXFLAGS="-g"
 elif test `echo "$CXX" | egrep -c 'xlC$'` -eq 1; then
Index: src/Makefile.in
--- src/Makefile.in.orig	2009-08-10 12:57:58 +0200
+++ src/Makefile.in	2009-08-11 19:53:23 +0200
@@ -381,7 +381,7 @@
 	genericints.h 				\
 	version.h
 
-libpstoedit_la_LIBADD = ${CXX_STD_LIB} ${CXX_RUNTIME_LIB} -ldl -lm
+libpstoedit_la_LIBADD = ${CXX_STD_LIB} ${CXX_RUNTIME_LIB} @LIBLD_LDFLAGS@ -lm
 libpstoedit_la_LDFLAGS = -no-undefined
 pstoedit_SOURCES = cmdmain.cpp
 pstoedit_LDFLAGS = -no-undefined -L. libpstoedit.la ${LIBLD_LDFLAGS}
