From fc15fcc6fc57a04245ed8e61bf71ca992b465a79 Mon Sep 17 00:00:00 2001 From: marino Date: Sat, 10 Dec 2011 23:53:34 +0000 Subject: math/pari: Fix for binutils 2.22 The ld linker from binutils 2.22 has --no-copy-dt-needed-entries enabled by default, which is exactly opposite of earlier versions of the linker. Previously ld would recursively search libraries linked in by the object's primary libraries during symbol resolution. Now linker wants all libraries explicit requested, otherwise one gets a message such as this: ld: : undefined reference to symbol '' ld: note: '' is defined in DSO so try adding it to the linker command line. If this message is encountered, the two options are either to explicitly add it to the linker command as suggested, or use the --no-copy-dt-needed-entries switch to return the linker to its previous behavior. In the case of math/pari, libstdc++ was added to the library list for the plotfltk.o object. This explicit link is required by DragonFly which is migrated to binutils 2.22 as its default version. --- math/pari/distinfo | 3 ++- math/pari/patches/patch-config_get_fltk | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 math/pari/patches/patch-config_get_fltk (limited to 'math/pari') diff --git a/math/pari/distinfo b/math/pari/distinfo index 084a1327db0..ed9a6183c09 100644 --- a/math/pari/distinfo +++ b/math/pari/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.19 2010/10/01 20:50:55 minskim Exp $ +$NetBSD: distinfo,v 1.20 2011/12/10 23:53:34 marino Exp $ SHA1 (pari-2.3.5.tar.gz) = f211ccfe42a4b18dbcde832dfd1ece6f477f4966 RMD160 (pari-2.3.5.tar.gz) = 488adf3af5398d0ab5390eb86b65cd79bd1044c5 @@ -19,3 +19,4 @@ SHA1 (patch-am) = 09e158e5cd3a680d786aa876ce66d034df0c3b86 SHA1 (patch-an) = 4e1f9c8e0c63e2f1922bb8b181212b3e09c56ce6 SHA1 (patch-ao) = 44bf077f1585e20277dcd42a7c5fd38d12b19af5 SHA1 (patch-ap) = 21a20b68b589f8be3036d1f2f9c4b2a7f43210a8 +SHA1 (patch-config_get_fltk) = 2c2aa271fad5880a44b2df70a7143d2aea690ca0 diff --git a/math/pari/patches/patch-config_get_fltk b/math/pari/patches/patch-config_get_fltk new file mode 100644 index 00000000000..e21f14ea077 --- /dev/null +++ b/math/pari/patches/patch-config_get_fltk @@ -0,0 +1,12 @@ +$NetBSD: patch-config_get_fltk,v 1.1 2011/12/10 23:53:34 marino Exp $ + +--- config/get_fltk.orig 2008-03-31 11:43:59.000000000 +0000 ++++ config/get_fltk +@@ -30,6 +30,6 @@ if test -n "$with_fltk"; then + case "$osname" in + cygwin) FLTK_LIBS="-lgdi32 -lole32 -luuid -lwsock32 -lsupc++" ;; + darwin) FLTK_LIBS="-framework Carbon -lsupc++" ;; +- *) FLTK_LIBS="$X11_LIBS" ;; ++ *) FLTK_LIBS="$X11_LIBS -lstdc++" ;; + esac + fi -- cgit v1.2.3