2021-05-17 21:12:54 +02:00
|
|
|
--- ./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
|
2018-05-28 21:12:29 +02:00
|
|
|
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
|
2021-05-17 21:12:54 +02:00
|
|
|
@@ -75,11 +60,6 @@
|
2018-05-28 21:12:29 +02:00
|
|
|
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@"
|
2021-05-17 21:12:54 +02:00
|
|
|
@@ -233,25 +213,20 @@
|
2018-05-28 21:12:29 +02:00
|
|
|
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
|
2021-05-17 21:12:54 +02:00
|
|
|
LDLIBS="-lfltk_gl$SHAREDSUFFIX @GLLIBS@ $LDLIBS"
|
|
|
|
- LDSTATIC="$libdir/libfltk_gl.a @GLLIBS@ $LDSTATIC"
|
2018-05-28 21:12:29 +02:00
|
|
|
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"
|
2021-05-17 21:12:54 +02:00
|
|
|
@@ -369,26 +344,26 @@
|
2018-05-28 21:12:29 +02:00
|
|
|
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
|