summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-03-24 11:43:52 +0000
committerjoerg <joerg@pkgsrc.org>2017-03-24 11:43:52 +0000
commit950d7109917add352584a7ed70f8aa953bb4f488 (patch)
tree14ebd896b6069c15cddce39ce70350b448219c66 /lang
parent849f67c1f11c9514a3e3ee33f961c2ee2d55d6eb (diff)
downloadpkgsrc-950d7109917add352584a7ed70f8aa953bb4f488.tar.gz
Link llvm-lto2 and the other tools dynamically against libLLVM to avoid
the size penalty. The primary intention of this package is to provide a standalone library for other consumers of LLVM and the size difference doesn't justify the small performance penalty. Bump revision.
Diffstat (limited to 'lang')
-rw-r--r--lang/libLLVM/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/libLLVM/Makefile b/lang/libLLVM/Makefile
index f34a5e1ea25..9c14bc33fd1 100644
--- a/lang/libLLVM/Makefile
+++ b/lang/libLLVM/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2017/03/17 22:38:18 adam Exp $
+# $NetBSD: Makefile,v 1.20 2017/03/24 11:43:52 joerg Exp $
DISTNAME= llvm-4.0.0.src
PKGNAME= ${DISTNAME:S/llvm/libLLVM/:S/.src//}
+PKGREVISION= 1
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
@@ -23,7 +24,9 @@ CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DCMAKE_C_COMPILER=gcc
CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=g++
CMAKE_ARGS+= -DLLVM_BUILD_LLVM_DYLIB=ON
+CMAKE_ARGS+= -DLLVM_LINK_LLVM_DYLIB=ON
CMAKE_ARGS+= -DLLVM_INCLUDE_TESTS=OFF
+CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/libLLVM
CMAKE_ARGS.Darwin+= -DCMAKE_LIBTOOL=/usr/bin/libtool