Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157511773
D56866.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D56866.id.diff
View Options
diff --git a/stand/libsa/zfs/Makefile.inc b/stand/libsa/zfs/Makefile.inc
--- a/stand/libsa/zfs/Makefile.inc
+++ b/stand/libsa/zfs/Makefile.inc
@@ -75,9 +75,13 @@
#
# ZSTD coding style has some issues, so suppress clang's warnings. Also, zstd's
# use of BMI instrucitons is broken in this environment, so avoid them.
+# Avoid generating the DYNAMIC_BMI2 code paths because the code duplication
+# inflates the resulting binaries. Disable ZSTD_TRACE because we don't need it
+# and the bfd linker trips over the weak undefined symbols it generates.
#
.for i in ${ZSTD_SRC}
-CFLAGS.$i+= -U__BMI__ ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
+CFLAGS.$i+= -U__BMI__ -DDYNAMIC_BMI2=0 -DZSTD_TRACE=0 \
+ ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
.endfor
CFLAGS.zfs_zstd.c+= -DIN_BASE -DIN_LIBSA
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 6:02 AM (22 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32762197
Default Alt Text
D56866.id.diff (782 B)
Attached To
Mode
D56866: stand/libsa/zfs: disable ZSTD_TRACE and DYNAMIC_BMI2 code paths
Attached
Detach File
Event Timeline
Log In to Comment