Index: configure
--- configure.orig	2018-06-03 16:45:24.000000000 +0200
+++ configure	2018-06-03 20:03:48.292110000 +0200
@@ -18375,7 +18375,7 @@
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
 $as_echo "GNU" >&6; }
 #   need to disable long long warning here because of ImageMagick using it
-    SPECIAL_CXXFLAGS="-Wall -Wextra -Wuninitialized -Wswitch-default -Wunused -Wshadow -Wwrite-strings -Wcast-qual -Wpointer-arith -Wno-long-long"
+    SPECIAL_CXXFLAGS="-Wno-long-long"
   fi
 elif test `echo "$CXX" | egrep -c 'xlC$'` -eq 1; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX xlC" >&5
Index: doc/Makefile.in
--- doc/Makefile.in.orig	2018-06-03 20:03:48.292527000 +0200
+++ doc/Makefile.in	2018-06-03 20:05:02.105604000 +0200
@@ -604,7 +604,7 @@
 
 all : alldoc
 gendocs : alldoc
-alldoc : pstoedit.1 pstoedit.htm pstoedit.pdf
+alldoc : pstoedit.1
 
 @DOCS_TRUE@generalhelplong.tex: $P
 @DOCS_TRUE@	$P -doculong | grep -v "DLL interface" > $@
Index: src/Makefile.in
--- src/Makefile.in.orig	2018-06-03 16:45:34.000000000 +0200
+++ src/Makefile.in	2018-06-03 20:03:48.293019000 +0200
@@ -575,7 +575,7 @@
 	psfront.h				\
 	genericints.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_LDADD = libpstoedit.la ${LIBLD_LDFLAGS}
