Page MenuHomeFreeBSD

D31047.id91797.diff
No OneTemporary

D31047.id91797.diff

Index: stand/Makefile.inc
===================================================================
--- stand/Makefile.inc
+++ stand/Makefile.inc
@@ -1,8 +1,10 @@
# $FreeBSD$
-# Sanitizers won't work for stand
+.if !defined(_USE_DEFAULT_USERSPACE_LIBS)
+# Sanitizers won't work for stand (except for userboot/test).
MK_ASAN:=no
MK_UBSAN:=no
+.endif
SUBDIR_PARALLEL= yes
Index: stand/userboot/test/Makefile
===================================================================
--- stand/userboot/test/Makefile
+++ stand/userboot/test/Makefile
@@ -1,5 +1,10 @@
# $FreeBSD$
+# Unlike the other programs in stand this links the normal userspace libraries
+# so we have to ensure MK_ASAN/MK_UBSAN matches the default to avoid linker
+# errors (this assignment prevents stand/Makefile.inc from setting MK_ASAN=no).
+_USE_DEFAULT_USERSPACE_LIBS=yes
+
.include <bsd.init.mk>
PROG= test

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 11:49 PM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14542026
Default Alt Text
D31047.id91797.diff (888 B)

Event Timeline