ports/144406: p5-Math-BigInt-GMP doesn't build with -lgmp
Kimo
kimor79 at yahoo.com
Tue Mar 2 00:20:05 UTC 2010
>Number: 144406
>Category: ports
>Synopsis: p5-Math-BigInt-GMP doesn't build with -lgmp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 02 00:20:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kimo
>Release: 8.0
>Organization:
>Environment:
>Description:
On FreeBSD 8.0, math/p5-Math-BigInt-GMP builds with no "errors" but skips building with -lgmp. This is not the case on FreeBSD 7.2 (it correctly builds with gmp).
>How-To-Repeat:
cd /usr/ports/math/p5-Math-BigInt-GMP
make install
ldd /usr/local/lib/perl5/site_perl/5.8.9/mach/auto/Math/BigInt/GMP/GMP.so
>Fix:
Patch to the port Makefile:
Index: Makefile
===================================================================
--- Makefile (revision 44)
+++ Makefile (working copy)
@@ -24,4 +24,9 @@
MAN3= Math::BigInt::GMP.3
+post-patch:
+ @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
+ -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
+ ${WRKSRC}/Makefile.PL
+
.include <bsd.port.mk>
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 44)
+++ Makefile (working copy)
@@ -24,4 +24,9 @@
MAN3= Math::BigInt::GMP.3
+post-patch:
+ @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
+ -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
+ ${WRKSRC}/Makefile.PL
+
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list