rmake: Fix a test on FreeBSD

This commit is contained in:
Alex Crichton 2014-04-03 13:12:19 -07:00
parent 8ded99c0ef
commit 0d9fd8e2a1
2 changed files with 13 additions and 2 deletions

View File

@ -1,12 +1,18 @@
-include ../tools.mk
ifneq ($(shell uname),FreeBSD)
all:
$(RUSTC) --dep-info --crate-type=lib lib.rs
sleep 1
sleep 2
touch foo.rs
-rm -f $(TMPDIR)/done
$(MAKE) -drf Makefile.foo
sleep 2
rm $(TMPDIR)/done
pwd
$(MAKE) -drf Makefile.foo
rm $(TMPDIR)/done && exit 1 || exit 0
else
all:
endif

View File

@ -1,8 +1,13 @@
-include ../tools.mk
ifneq ($(shell uname),Darwin)
ifeq ($(shell uname),Darwin)
else
ifeq ($(shell uname),FreeBSD)
EXTRAFLAGS := -lm -lpthread -lgcc_s
else
EXTRAFLAGS := -lm -lrt -ldl -lpthread
endif
endif
# Apparently older versions of GCC segfault if -g is passed...
CC := $(CC:-g=)