Skip to content

Commit 3d27dbc

Browse files
robarnoldgraydon
authored andcommitted
---
yaml --- r: 1352 b: refs/heads/master c: 6e39102 h: refs/heads/master v: v3
1 parent 3234f01 commit 3d27dbc

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8c0d35066bcc0ab0eb35818f4de63bccee097e5c
2+
refs/heads/master: 6e39102299eb962ac3c381e73ed7fcca68192f45

trunk/src/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ CFG_RUSTC_FLAGS := -nowarn
3232
# embedded into the executable, so use a no-op command.
3333
DSYMUTIL := true
3434

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+
3555
ifeq ($(CFG_OSTYPE), Linux)
3656
CFG_RUNTIME := librustrt.so
3757
CFG_STDLIB := libstd.so

0 commit comments

Comments
 (0)