svn commit: r486025 - head/lang/libobjc2
Mark Linimon
linimon at FreeBSD.org
Tue Nov 27 16:40:34 UTC 2018
Author: linimon
Date: Tue Nov 27 16:40:33 2018
New Revision: 486025
URL: https://svnweb.freebsd.org/changeset/ports/486025
Log:
Switch the libstdc++ flag to be dependent on an existance test. This
will be more robust if the quoted archs switch to libc++ in the future.
Reported by: jbeich
Approved by: portmgr (tier-2 blanket)
Modified:
head/lang/libobjc2/Makefile
Modified: head/lang/libobjc2/Makefile
==============================================================================
--- head/lang/libobjc2/Makefile Tue Nov 27 16:36:14 2018 (r486024)
+++ head/lang/libobjc2/Makefile Tue Nov 27 16:40:33 2018 (r486025)
@@ -29,12 +29,9 @@ CMAKE_ARGS+= -DTESTS=OFF
# This shouldn't be needed, but our llvm port installs llvm-config with a silly
# name...
CMAKE_ARGS+= -DLLVM_OPTS=OFF
-CXXFLAGS_powerpc64= -stdlib=libstdc++
-CXXFLAGS_powerpcspe= -stdlib=libstdc++
-CXXFLAGS_powerpc= -stdlib=libstdc++
-CXXFLAGS_sparc64= -stdlib=libstdc++
-CXXFLAGS_mips= -stdlib=libstdc++
-CXXFLAGS_mips64= -stdlib=libstdc++
+.if exists(/usr/lib/libstdc++.so)
+CXXFLAGS+= -stdlib=libstdc++
+.endif
post-install:
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
More information about the svn-ports-all
mailing list