DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2918
Version: 1.3-feature
A package that uses fltk-config to link against a dynamic version of fltk
may fail to build with errors like
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lXft
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lfontconfig
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lXinerama
(toycars, real case)
Even if the package doesn't use Xft, fontconfig or Xinerama.
The attached patch fixes the problem by not adding those libraries.
Link: http://www.fltk.org/str.php?L2918
Version: 1.3-feature
Index: fltk-config.in
===================================================================
--- fltk-config.in.orig
+++ fltk-config.in
@@ -231,7 +231,7 @@ 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"
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev