svn commit: r513779 - head/www/anyterm

Piotr Kubaj pkubaj at FreeBSD.org
Fri Oct 4 20:45:24 UTC 2019


Author: pkubaj
Date: Fri Oct  4 20:45:23 2019
New Revision: 513779
URL: https://svnweb.freebsd.org/changeset/ports/513779

Log:
  www/anyterm: fix build on arm and GCC architectures
  
  Linking with boost requires C++11 compiler.
  
  Passing -L/usr/lib makes the compiler link against base libstdc++, which causes build failures on architectures that have libstdc++ in base.
  
  PR:		241034
  Approved by:	linimon (mentor), douglas at douglasthrift.net (maintainer)

Modified:
  head/www/anyterm/Makefile

Modified: head/www/anyterm/Makefile
==============================================================================
--- head/www/anyterm/Makefile	Fri Oct  4 20:40:33 2019	(r513778)
+++ head/www/anyterm/Makefile	Fri Oct  4 20:45:23 2019	(r513779)
@@ -17,13 +17,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libboost_system.so:devel/boost-libs
 
-BROKEN_aarch64=		does not build: libstdc++.so: undefined reference to __floatunditf at GCC_4.2.0
-BROKEN_armv6=		does not build: libstdc++.so: undefined reference to __aeabi_idiv at GCC_3.5
-BROKEN_armv7=		does not build: libstdc++.so: undefined reference to __aeabi_idiv at GCC_3.5
-BROKEN_powerpc64=	Does not build: ld: cannot find -lboost_system
-
 USE_RC_SUBR=	anytermd
-USES=		gmake iconv localbase tar:tbz2
+USES=		compiler:c++11-lang gmake iconv localbase tar:tbz2
 USE_GCC=	any
 ALL_TARGET=	default_target
 PLIST_FILES=	man/man1/anytermd.1.gz \
@@ -41,6 +36,7 @@ post-patch:
 		-e '/^COMPILE_FLAGS=/s|$$| ${CXXFLAGS}|' \
 		-e 's|$${OPTIMISE_FLAGS}||' \
 		-e 's|$$(LINK_FLAGS)|& -L${ICONV_PREFIX}/lib ${ICONV_LIB} |' \
+		-e 's| -L/usr/lib||' \
 		${WRKSRC}/common.mk
 	@${REINPLACE_CMD} \
 		-e '/^COMPILE_FLAGS=/s|$$| ${CXXFLAGS}|' \


More information about the svn-ports-head mailing list