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@douglasthrift.net (maintainer)
This commit is contained in:
Piotr Kubaj
2019-10-04 20:45:23 +00:00
parent a4e6755318
commit f9f0131edd

View File

@@ -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@GCC_4.2.0
BROKEN_armv6= does not build: libstdc++.so: undefined reference to __aeabi_idiv@GCC_3.5
BROKEN_armv7= does not build: libstdc++.so: undefined reference to __aeabi_idiv@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}|' \