openbsd-ports/lang/rust/patches/patch-src_test_run-make_tools_mk
landry 97894fe4c9 Update to rust 1.22.1.
full changelog at https://blog.rust-lang.org/2017/11/22/Rust-1.22.html

port changes:
- switch to clang and libc++ (instead of egcc and estdc++)
- use devel/llvm instead of the embedded llvm version
- make i386 produce code for 'pentiumpro' instead of 'pentium4' so that
ppl can use ripgrep on pentium II's (yay!)
- use a hack (codegen-units=16) to fix memory pressure issues on i386.
  Might not work forever.....

tested on i386 & amd64, went into an i386 bulk.
all the hard work from semarie@
2017-12-04 17:31:49 +00:00

15 lines
524 B
Plaintext

$OpenBSD: patch-src_test_run-make_tools_mk,v 1.4 2017/12/04 17:31:49 landry Exp $
Use c++ for OpenBSD instead of stdc++
Index: src/test/run-make/tools.mk
--- src/test/run-make/tools.mk.orig
+++ src/test/run-make/tools.mk
@@ -86,7 +86,7 @@ ifeq ($(UNAME),SunOS)
EXTRACFLAGS := -lm -lpthread -lposix4 -lsocket -lresolv
else
ifeq ($(UNAME),OpenBSD)
- EXTRACFLAGS := -lm -lpthread
+ EXTRACFLAGS := -lm -lpthread -lc++abi
RUSTC := $(RUSTC) -C linker="$(word 1,$(CC:ccache=))"
else
EXTRACFLAGS := -lm -lrt -ldl -lpthread