File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8c0d35066bcc0ab0eb35818f4de63bccee097e5c
2
+ refs/heads/master: 6e39102299eb962ac3c381e73ed7fcca68192f45
Original file line number Diff line number Diff line change @@ -32,6 +32,26 @@ CFG_RUSTC_FLAGS := -nowarn
32
32
# embedded into the executable, so use a no-op command.
33
33
DSYMUTIL := true
34
34
35
+ ifeq ($(CFG_OSTYPE ) , FreeBSD)
36
+ CFG_RUNTIME := librustrt.so
37
+ CFG_STDLIB := libstd.so
38
+ CFG_GCC_CFLAGS += -fPIC -march=i686 -I/usr/local/include
39
+ CFG_GCC_LINK_FLAGS += -shared -fPIC -lpthread -lrt
40
+ ifeq ($(CFG_CPUTYPE), x86_64)
41
+ CFG_GCC_CFLAGS += -m32
42
+ CFG_GCC_LINK_FLAGS += -m32
43
+ endif
44
+ CFG_NATIVE := 1
45
+ CFG_UNIXY := 1
46
+ CFG_VALGRIND := $(shell which valgrind)
47
+ ifdef CFG_VALGRIND
48
+ CFG_VALGRIND += --leak-check=full \
49
+ --error-exitcode=1 \
50
+ --quiet --vex-iropt-level=0 \
51
+ --suppressions=etc/x86.supp
52
+ endif
53
+ endif
54
+
35
55
ifeq ($(CFG_OSTYPE ) , Linux)
36
56
CFG_RUNTIME := librustrt.so
37
57
CFG_STDLIB := libstd.so
You can’t perform that action at this time.
0 commit comments