summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2019-11-26 10:58:23 +0000
committersthen <sthen@openbsd.org>2019-11-26 10:58:23 +0000
commit64ad38d28744bffc1c1239da1a320bc7ab6fe6b3 (patch)
treee8e90691cdb6e4e5b5636dfec914323770cfa94c
parentkdump reads /etc/protocols to translate proto numbers into names; ok sthen@ gilles@ (diff)
downloadwireguard-openbsd-64ad38d28744bffc1c1239da1a320bc7ab6fe6b3.tar.xz
wireguard-openbsd-64ad38d28744bffc1c1239da1a320bc7ab6fe6b3.zip
Revert previous "honour DEBUG", otherwise clang uses -g resulting in huge
objects and it running out of memory in the "building shared LLVM library" stage (at least on i386). building standard LLVM library building shared LLVM library (version 1.0) cc -shared -Wl,-soname,libLLVM.so.1.0 -fpic -o libLLVM.so.1.0 `echo AMDGPUAsmParser.so AMDGPUInstPrinter.so AMDGPUAliasAnalysis.so AMDGPUAlwaysInlinePass.so AMDGPUAnnotateKernelFeatures.so AMDGPUAnnotateUniformValues.so AMDGPUArgumentUsageInfo.so [...snip lots of .so...] ThinLTOBitcodeWriter.so WholeProgramDevirt.so | tr ' ' '\n' | sort -R` -Wl,--start-group -Wl,--end-group LLVM ERROR: out of memory cc: error: unable to execute command: Abort trap cc: error: linker command failed due to signal (use -v to see invocation) ar: libLLVM.a: No space left on device *** Error 1 in gnu/usr.bin/clang/libLLVM (<bsd.lib.mk>:193 'libLLVM.a': @ar cqD libLLVM.a `lorder AMDGPUAsmParser.o AMDGPUIn stPrinter.o AMDG...) *** Error 254 (<bsd.lib.mk>:225 'libLLVM.so.1.0')
-rw-r--r--gnu/usr.bin/clang/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc
index 6a11cd4a18a..2bda4878c0f 100644
--- a/gnu/usr.bin/clang/Makefile.inc
+++ b/gnu/usr.bin/clang/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.17 2019/11/25 23:59:57 kn Exp $
+# $OpenBSD: Makefile.inc,v 1.18 2019/11/26 10:58:23 sthen Exp $
LLVM_SRCS?= ${.CURDIR}/../../../llvm
@@ -13,6 +13,7 @@ CC= egcc
CXX= eg++
.endif
+DEBUG=
NOPIE=
CLANG_INCLUDES= -I${LLVM_SRCS}/tools/clang/include