svn commit: r326976 - head/graphics/opennurbs

Michael Reifenberger mr at FreeBSD.org
Wed Sep 11 13:14:23 UTC 2013


Author: mr
Date: Wed Sep 11 13:14:22 2013
New Revision: 326976
URL: http://svnweb.freebsd.org/changeset/ports/326976

Log:
  To get at least qcad compiled under clang/amd64 add -fpic to the compile flags.
  
  Reviewed by:	Vaclav Hala
  Approved by:	maintainer(timeout, > 14 days)

Modified:
  head/graphics/opennurbs/Makefile

Modified: head/graphics/opennurbs/Makefile
==============================================================================
--- head/graphics/opennurbs/Makefile	Wed Sep 11 12:59:14 2013	(r326975)
+++ head/graphics/opennurbs/Makefile	Wed Sep 11 13:14:22 2013	(r326976)
@@ -19,6 +19,12 @@ MAKE_ARGS=	CC=${CC} CCC=${CXX}
 MAKEFILE=	makefile
 EXAMPLESDIR=	${PREFIX}/libexec/openNURBS
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != i386
+MAKE_ARGS+=	ON_GNU_OPTIMIZER_FLAGS="-g -fPIC"
+.endif
+
 pre-build:
 	${ICONV_CMD} -c -f utf-8 -t ascii ${WRKSRC}/opennurbs_version.h > ${WRKSRC}/opennurbs_version.h.tmp || ${TRUE}
 	@${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
@@ -33,4 +39,4 @@ do-install:
 	@${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/openNURBS/
 	@${INSTALL_DATA} ${WRKSRC}/zlib/*.h ${PREFIX}/include/openNURBS/zlib
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list