From owner-svn-ports-all@freebsd.org Tue Nov 27 16:40:34 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19720115369F; Tue, 27 Nov 2018 16:40:34 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B32DB85291; Tue, 27 Nov 2018 16:40:33 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9537E1DE6A; Tue, 27 Nov 2018 16:40:33 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wARGeXFo034866; Tue, 27 Nov 2018 16:40:33 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wARGeXbG034865; Tue, 27 Nov 2018 16:40:33 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201811271640.wARGeXbG034865@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Tue, 27 Nov 2018 16:40:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486025 - head/lang/libobjc2 X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/lang/libobjc2 X-SVN-Commit-Revision: 486025 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B32DB85291 X-Spamd-Result: default: False [1.15 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.47)[0.465,0]; NEURAL_SPAM_MEDIUM(0.64)[0.643,0]; NEURAL_SPAM_SHORT(0.04)[0.038,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 16:40:34 -0000 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}