summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 546c605..65e1301 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,9 @@ all: bfs tests
$(BIN)/%:
@$(MKDIR) $(@D)
+$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@
+ifeq ($(OS) $(TSAN),FreeBSD tsan)
+ elfctl -e +noaslr $@
+endif
$(OBJ)/%.o: %.c $(OBJ)/FLAGS
@$(MKDIR) $(@D)
@@ -279,6 +282,7 @@ distcheck:
ifneq ($(OS),Darwin)
+$(MAKE) -B msan ubsan check CC=clang $(DISTCHECK_FLAGS)
endif
+ +$(MAKE) -B tsan ubsan check CC=clang $(DISTCHECK_FLAGS)
ifeq ($(OS) $(ARCH),Linux x86_64)
+$(MAKE) -B check EXTRA_CFLAGS="-m32" ONIG_CONFIG= $(DISTCHECK_FLAGS)
endif