ports/136455: [PATCH] misc/ossp-uuid: add -fPIC for amd64 and ia64
Martin Matuska
mm at FreeBSD.org
Wed Jul 8 10:10:02 UTC 2009
>Number: 136455
>Category: ports
>Synopsis: [PATCH] misc/ossp-uuid: add -fPIC for amd64 and ia64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 08 10:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 7.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 7.2-STABLE amd64
>Description:
Add -fPIC to CFLAGS if compiling for amd64 or ia64
Port maintainer (vd at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- ossp-uuid-1.6.2_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/misc/ossp-uuid/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile 27 Nov 2008 07:35:26 -0000 1.32
+++ Makefile 8 Jul 2009 09:54:54 -0000
@@ -7,6 +7,7 @@
PORTNAME= uuid
PORTVERSION= 1.6.2
+PORTREVISION= 1
CATEGORIES= misc devel
MASTER_SITES= ${MASTER_SITE_OSSP}
MASTER_SITE_SUBDIR= lib/${PORTNAME}
@@ -24,6 +25,8 @@
MAN1= uuid-config.1 uuid.1
MAN3= uuid.3 uuid++.3
+.include <bsd.port.pre.mk>
+
.if defined(WITH_PERL)
USE_PERL5= 5.8.0+
CONFIGURE_ENV+= PERL=${PERL5}
@@ -35,9 +38,13 @@
PLIST_SUB+= WITH_PERL='@comment '
.endif
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+= -fPIC
+.endif
+
regression-test: test
test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- ossp-uuid-1.6.2_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list