summaryrefslogtreecommitdiff
path: root/lang/clang
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-01-11 19:16:47 +0000
committerjperkin <jperkin>2013-01-11 19:16:47 +0000
commit292e247e0b0f0718de5461ca00e0ef843edfb491 (patch)
treeac575d0e626fa963bfcb79d623ed5c982a6d1567 /lang/clang
parentd2762507a3ac1de6de9cc7c24c15b5690fb39eac (diff)
downloadpkgsrc-292e247e0b0f0718de5461ca00e0ef843edfb491.tar.gz
Fix build on Solaris. The package isn't functional as it looks for gcc
files in hardcoded locations, but perhaps it works on certain releases anyway, and we can fix the package for SmartOS later.
Diffstat (limited to 'lang/clang')
-rw-r--r--lang/clang/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile
index 9c401db4002..95ddd65dce6 100644
--- a/lang/clang/Makefile
+++ b/lang/clang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2013/01/06 22:27:17 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2013/01/11 19:16:47 jperkin Exp $
DISTNAME= clang-3.2
CATEGORIES= lang
@@ -14,7 +14,7 @@ LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV}.src
USE_LANGUAGES= c c++
-USE_TOOLS+= chown gmake pod2html
+USE_TOOLS+= chown gmake groff pod2html
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-assertions
CONFIGURE_ARGS+= --disable-bindings # disable OCaml
@@ -38,8 +38,13 @@ PLIST_SUBST+= SOEXT="dylib"
PLIST_SUBST+= SOEXT="so"
.endif
+CFLAGS.SunOS+= -mimpure-text
+
post-extract:
mv ${WRKDIR}/clang-${PKGVERSION_NOREV}.src ${WRKSRC}/tools/clang
+.if ${OPSYS} == "SunOS"
+ ${ECHO} "int sun_ld_needs_a_symbol=0;" >> ${WRKSRC}/lib/Target/NVPTX/InstPrinter/NVPTXInstPrinter.cpp
+.endif
.include "../../lang/python/tool.mk"
.include "../../textproc/libxml2/buildlink3.mk"