tech-pkg archive

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

[PATCH] llvm and libLLVM LDFLAGS usage



Hi,

here are two tiny patches to make llvm and libLLVM (btw.: case
sensitive package names are annoying) honour my LDFLAGS. Without that
you can get nasty surprises especially when using a pre-installed
custom toolchain.


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
Universität Hamburg
RRZ / Basis-Infrastruktur / HPC
Schlüterstr. 70
20146 Hamburg
Tel.: 040/42838 8826
Fax: 040/428 38 6270
diff -x CVS -ruN pkgsrc-2017Q1/lang/libLLVM/Makefile pkgsrc/lang/libLLVM/Makefile
--- pkgsrc-2017Q1/lang/libLLVM/Makefile	2017-03-24 12:43:52.000000000 +0100
+++ pkgsrc/lang/libLLVM/Makefile	2017-04-07 18:00:04.335850338 +0200
@@ -23,6 +23,7 @@
 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
diff -x CVS -ruN pkgsrc-2017Q1/lang/llvm/Makefile pkgsrc/lang/llvm/Makefile
--- pkgsrc-2017Q1/lang/llvm/Makefile	2017-03-19 20:01:48.000000000 +0100
+++ pkgsrc/lang/llvm/Makefile	2017-04-07 18:00:22.327889172 +0200
@@ -32,6 +32,7 @@
 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_INCLUDE_TESTS=OFF
 CMAKE_ARGS+=	-DLLVM_INSTALL_UTILS=ON

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index