diff options
author | demon <demon@FreeBSD.org> | 2005-06-26 02:25:28 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2005-06-26 02:25:28 +0800 |
commit | be2d7d21d1e563bf39cd8aa1164ca52d5ba0c140 (patch) | |
tree | a3ed4fb8b08e3bb04b49e670bcc06791e4d169cf /x11-toolkits | |
parent | 45c136a228f3715c1aa3882c9a66d40dd112671c (diff) | |
download | freebsd-ports-gnome-be2d7d21d1e563bf39cd8aa1164ca52d5ba0c140.tar.gz freebsd-ports-gnome-be2d7d21d1e563bf39cd8aa1164ca52d5ba0c140.tar.zst freebsd-ports-gnome-be2d7d21d1e563bf39cd8aa1164ca52d5ba0c140.zip |
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>
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fltk/files/patch-fltk-config.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/files/patch-fltk-config.in b/x11-toolkits/fltk/files/patch-fltk-config.in new file mode 100644 index 000000000000..5be8cdc224ba --- /dev/null +++ b/x11-toolkits/fltk/files/patch-fltk-config.in @@ -0,0 +1,20 @@ +--- 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 |