Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102129541
D31047.id91797.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
888 B
Referenced Files
None
Subscribers
None
D31047.id91797.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31047: Fix build of stand/ when building world with ASAN
Attached
Detach File
Event Timeline
Log In to Comment