Index: fltk-1.3.7/fltk-config.in =================================================================== --- fltk-1.3.7.orig/fltk-config.in +++ fltk-1.3.7/fltk-config.in @@ -42,8 +42,8 @@ CXX="@CXX@" # flags for C++ compiler: ARCHFLAGS="@ARCHFLAGS@" -CFLAGS="@CFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@" -CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@" +CFLAGS="" +CXXFLAGS="" LDFLAGS="@LDFLAGS@" LDLIBS="@LIBS@" OPTIM="@OPTIM@" @@ -226,7 +226,7 @@ if test "$BINARY_DIR" != ""; then includes="-I$BINARY_DIR $includes" fi -if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then +if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32 -a "$libdir" != /usr/lib64; then libs=-L$libdir else libs= @@ -234,23 +234,23 @@ fi # Calculate needed libraries LDSTATIC="$libdir/libfltk.a $LDLIBS" -LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS" +LDLIBS="-lfltk$SHAREDSUFFIX" if test x$use_forms = xyes; then LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS" LDSTATIC="$libdir/libfltk_forms.a $LDSTATIC" fi if test x$use_gl = xyes; then - LDLIBS="-lfltk_gl$SHAREDSUFFIX @GLLIBS@ $LDLIBS" + LDLIBS="-lfltk_gl$SHAREDSUFFIX $LDLIBS" LDSTATIC="$libdir/libfltk_gl.a @GLLIBS@ $LDSTATIC" fi if test x$use_images = xyes; then - LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS" + LDLIBS="-lfltk_images$SHAREDSUFFIX $LDLIBS" LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC" fi if test x$use_cairo = xyes; then - LDLIBS="-lfltk_cairo$SHAREDSUFFIX $CAIROLIBS $LDLIBS" + LDLIBS="-lfltk_cairo$SHAREDSUFFIX $LDLIBS" LDSTATIC="$libdir/libfltk_cairo.a $CAIROLIBS $LDSTATIC" fi