libLLVM: respect LDFLAGS

from Dr. Thomas Orgis via tech-pkg
This commit is contained in:
maya 2017-05-01 00:43:07 +00:00
parent 3067a511ad
commit d7c513e28d

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2017/04/10 19:49:59 maya Exp $
# $NetBSD: Makefile,v 1.22 2017/05/01 00:43:07 maya Exp $
DISTNAME= llvm-4.0.0.src
PKGNAME= ${DISTNAME:S/llvm/libLLVM/:S/.src//}
@ -23,6 +23,7 @@ CMAKE_ARG_PATH= ${WRKSRC}
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DCMAKE_C_COMPILER=gcc
CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=g++
CMAKE_ARGS+= -DCMAKE_CXX_LINK_FLAGS=${LDFLAGS:Q}
CMAKE_ARGS+= -DLLVM_BUILD_LLVM_DYLIB=ON
CMAKE_ARGS+= -DLLVM_LINK_LLVM_DYLIB=ON
CMAKE_ARGS+= -DLLVM_INCLUDE_TESTS=OFF