freebsd-ports/x11-toolkits/fltk/files/patch-fltk-config.in
Dmitry Sivachenko 2a70195a32 Add '-lm' to the output of fltk-config --ldstaticflags and
fltk-config --ldflags.  libm is needed when linking against libfltk.

This fixes OpenOffice build with fltk installed.

PR:		82551
Submitted by:	Mike Durian <durian@shadetreesoftware.com>
2005-06-25 18:25:28 +00:00

20 lines
441 B
Text

--- fltk-config.in.orig Mon Sep 6 15:20:52 2004
+++ fltk-config.in Sat Jun 25 11:45:04 2005
@@ -180,7 +180,7 @@
fi
# Calculate needed libraries
-LDSTATIC="$libdir/libfltk.a $LDLIBS"
+LDSTATIC="-lm $libdir/libfltk.a $LDLIBS"
LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
LIBS="$libdir/libfltk.a"
@@ -247,7 +247,7 @@
fi
if test "$echo_ldflags" = "yes"; then
- my_libs=
+ my_libs="-lm"
libdirs=$libs
for i in $LDLIBS ; do