USES=objc:compiler sets the compiler, but then USES=compiler:c++11-lang
overwrites it. Remove the latter to use the proper compiler. Also use libstdc++ on GCC architectures to fix build. While here, pet portlint. PR: 232386 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
5dbe545b9b
commit
6f129cadcb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483764
@ -3,8 +3,8 @@
|
||||
|
||||
PORTNAME= libobjc2
|
||||
PORTVERSION= 1.8.1
|
||||
PORTREVISION= 2
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang devel gnustep
|
||||
|
||||
MAINTAINER= theraven@FreeBSD.org
|
||||
@ -12,7 +12,7 @@ COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
|
||||
|
||||
BROKEN_powerpc= Does not compile on powerpc: Unsupported relocation type 10
|
||||
BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly
|
||||
USES= cmake compiler:c++11-lang objc:compiler
|
||||
USES= cmake objc:compiler
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= gnustep
|
||||
@ -29,6 +29,12 @@ 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++
|
||||
|
||||
post-install:
|
||||
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
|
||||
|
Loading…
Reference in New Issue
Block a user