pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/libLLVM Link llvm-lto2 and the other tools dynami...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9756ecb399e
branches:  trunk
changeset: 360148:d9756ecb399e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 24 11:43:52 2017 +0000

description:
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:

 lang/libLLVM/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r dca353c106ae -r d9756ecb399e lang/libLLVM/Makefile
--- a/lang/libLLVM/Makefile     Fri Mar 24 11:42:09 2017 +0000
+++ b/lang/libLLVM/Makefile     Fri Mar 24 11:43:52 2017 +0000
@@ -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_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
 



Home | Main Index | Thread Index | Old Index