slackware-current/extra/source/fltk/fltk.fltk-config.in.diff
Patrick J Volkerding 9a7688d56a Mon May 17 19:12:54 UTC 2021
l/libusb-compat-0.1.7-x86_64-1.txz:  Upgraded.
xap/mozilla-thunderbird-78.10.2-x86_64-1.txz:  Upgraded.
  This release contains security fixes and improvements.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/78.10.2/releasenotes/
  (* Security fix *)
extra/fltk/fltk-1.3.6-x86_64-1.txz:  Upgraded.
2021-05-18 08:59:55 +02:00

96 lines
2.7 KiB
Diff

--- ./fltk-config.in.orig 2021-05-15 05:22:19.000000000 -0500
+++ ./fltk-config.in 2021-05-17 13:13:05.020746498 -0500
@@ -53,21 +53,6 @@
if test -f "$selfdir/FL/Fl_Window.H"; then
includedir="$selfdir"
libdir="$selfdir/lib"
-
- if test -f "$libdir/libfltk_jpeg.a"; then
- CFLAGS="-I$includedir/jpeg $CFLAGS"
- CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
- fi
-
- if test -f "$libdir/libfltk_z.a"; then
- CFLAGS="-I$includedir/zlib $CFLAGS"
- CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
- fi
-
- if test -f "$libdir/libfltk_png.a"; then
- CFLAGS="-I$includedir/png $CFLAGS"
- CXXFLAGS="-I$includedir/png $CXXFLAGS"
- fi
fi
if test -d $includedir/FL/images; then
@@ -75,11 +60,6 @@
CXXFLAGS="-I$includedir/FL/images $CXXFLAGS"
fi
-if test -f "$libdir/libfltk_cairo.a"; then
- CFLAGS="$CAIROFLAGS $CFLAGS"
- CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
-fi
-
# libraries to link with:
LIBNAME="@LIBNAME@"
DSONAME="@DSONAME@"
@@ -233,25 +213,20 @@
fi
# Calculate needed libraries
-LDSTATIC="$libdir/libfltk.a $LDLIBS"
LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
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"
- LDSTATIC="$libdir/libfltk_gl.a @GLLIBS@ $LDSTATIC"
fi
if test x$use_images = xyes; then
LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
- LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC"
fi
if test x$use_cairo = xyes; then
LDLIBS="-lfltk_cairo$SHAREDSUFFIX $CAIROLIBS $LDLIBS"
- LDSTATIC="$libdir/libfltk_cairo.a $CAIROLIBS $LDSTATIC"
fi
LDLIBS="$DSOLINK $LDFLAGS $libs $LDLIBS"
@@ -369,26 +344,26 @@
fi
if test "$echo_libs" = "yes"; then
- USELIBS="$libdir/libfltk.a"
+ USELIBS="$libdir/libfltk.so"
if test x$use_forms = xyes; then
- USELIBS="$libdir/libfltk_forms.a $USELIBS"
+ USELIBS="$libdir/libfltk_forms.so $USELIBS"
fi
if test x$use_gl = xyes; then
- USELIBS="$libdir/libfltk_gl.a $USELIBS"
+ USELIBS="$libdir/libfltk_gl.so $USELIBS"
fi
if test x$use_cairo = xyes; then
- USELIBS="$libdir/libfltk_cairo.a $USELIBS"
+ USELIBS="$libdir/libfltk_cairo.so $USELIBS"
fi
if test x$use_images = xyes; then
- USELIBS="$libdir/libfltk_images.a $USELIBS"
+ USELIBS="$libdir/libfltk_images.so $USELIBS"
for lib in fltk_jpeg fltk_png fltk_z; do
- if test -f $libdir/lib$lib.a; then
- USELIBS="$libdir/lib$lib.a $USELIBS"
+ if test -f $libdir/lib$lib.so; then
+ USELIBS="$libdir/lib$lib.so $USELIBS"
fi
done
fi