svn commit: r409666 - head/math/ipopt

Baptiste Daroussin bapt at FreeBSD.org
Sat Feb 27 13:26:25 UTC 2016


Author: bapt
Date: Sat Feb 27 13:26:24 2016
New Revision: 409666
URL: https://svnweb.freebsd.org/changeset/ports/409666

Log:
  Enforce using binutils from ports when linking C++ codes given we use binutils
  from ports for fortran
  
  This fixes build for upcoming binutils 2.26

Modified:
  head/math/ipopt/Makefile

Modified: head/math/ipopt/Makefile
==============================================================================
--- head/math/ipopt/Makefile	Sat Feb 27 13:25:13 2016	(r409665)
+++ head/math/ipopt/Makefile	Sat Feb 27 13:26:24 2016	(r409666)
@@ -21,7 +21,8 @@ GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 INSTALL_TARGET=	install-strip
 
-CONFIGURE_ENV+=	PKG_CONFIG_PATH=${STAGEDIR}${PREFIX}/libdata/pkgconfig
+CONFIGURE_ENV+=	PKG_CONFIG_PATH=${STAGEDIR}${PREFIX}/libdata/pkgconfig \
+		CXX="${CXX} -B${LOCALBASE}/bin"
 CONFIGURE_ARGS=	--with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib"	\
 		--with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib"
 
@@ -36,6 +37,7 @@ post-patch::
 	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
 		's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
 		-e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g'
+
 post-extract:
 	@(${ECHO} "Extracting Metis and Mumps ThirdParty libraries ..." )
 	@(cd ${WRKSRC}/ThirdParty/Metis && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/metis-4.0.3.tar.gz ${EXTRACT_AFTER_ARGS});


More information about the svn-ports-all mailing list