summaryrefslogtreecommitdiff
path: root/lang/clang/Makefile
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-01-11 19:16:47 +0000
committerjperkin <jperkin@pkgsrc.org>2013-01-11 19:16:47 +0000
commit81dd51821d27461bd0ad6e3d9b18fbc69361005e (patch)
treeac575d0e626fa963bfcb79d623ed5c982a6d1567 /lang/clang/Makefile
parent306ad205680b61354a53d472fe7d82b3c2f0de58 (diff)
downloadpkgsrc-81dd51821d27461bd0ad6e3d9b18fbc69361005e.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/Makefile')
-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"