summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-06-20 14:08:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-20 14:09:46 -0400
commitf8ba689c096302e3946db1c35c2a8e5dd8907390 (patch)
tree812d403a8ab43bfb3c8c732882d9bff03e193c1f /Makefile
parent33f85610b4174f937e1b61caee15fd4d80e4881c (diff)
downloadbfs-f8ba689c096302e3946db1c35c2a8e5dd8907390.tar.xz
build: Turn off ASLR for all sanitizers on FreeBSD
Newer LLVM versions will reject every sanitizer runtime if ASLR is enabled. Link: https://reviews.llvm.org/D66582 Link: https://reviews.freebsd.org/D33933
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8fc68fd..fb28e29 100644
--- a/Makefile
+++ b/Makefile
@@ -197,7 +197,7 @@ all: bfs tests
$(BIN)/%:
@$(MKDIR) $(@D)
+$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@
-ifeq ($(OS) $(TSAN),FreeBSD tsan)
+ifeq ($(OS) $(SANITIZE),FreeBSD y)
elfctl -e +noaslr $@
endif