--- configure.orig
+++ configure
@@ -18418,10 +18418,10 @@
   if test x$FLTK_CONFIG != xno ; then
   	if test x$STATIC_FLTK != xtrue ; then
   	    FLTK_CXXFLAGS="`$FLTK_CONFIG --use-gl --cxxflags`"
-    	FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldstaticflags`"
+    	FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldstaticflags | sed 's/ -R.* / /g'`"
   	else
 	    FLTK_CXXFLAGS="`$FLTK_CONFIG --use-gl --cxxflags`"
-    	FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldflags`"
+    	FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldflags | sed 's/ -R.* / /g'`"
     fi
   else
     FLTK_CXXFLAGS=""