add Makefile.local comments for macOS reduce dependency chains

This commit is contained in:
Landon Curt Noll
2023-08-12 16:14:11 -07:00
parent f025dcf0d8
commit da623e13cb
2 changed files with 21 additions and 4 deletions

View File

@@ -22,6 +22,9 @@ The following are the changes from calc version 2.14.3.1 to date:
Updated comments in Makefile.local for how to Diagnosing memory,
thread, and crash issues under RHEL and macOS.
Added comments in Makefile.local for how to reduce dependency chains
under macOS
The following are the changes from calc version 2.14.2.1 to 2.14.3.0:

View File

@@ -26,7 +26,9 @@
####
# RHEL Diagnosing memory, thread, and crash issues
#
# This comment block was tested for:
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
#
# This comment block was tested under:
#
# RHEL9 gcc version 11.3.1 20221121 (Red Hat 11.3.1-4) (GCC)
#
@@ -38,7 +40,7 @@
#
# UNSUPPORTED_FSANITIZE:= -fsanitize=nullability-arg -fsanitize=nullability-assign
#
# Uncomment these values to disnose memory, thread, and crash issues on RHEL:
# Uncomment these lines:
#
# DEBUG:= -O0 -g
# FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds
@@ -55,7 +57,9 @@
####
# macOS Diagnosing memory, thread, and crash issues
#
# This comment block was tested for:
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
#
# This comment block was tested under:
#
# macOS 13.5 with clang version 14.0.3 (clang-1403.0.22.14.1)
#
@@ -67,7 +71,7 @@
#
# UNSUPPORTED_FSANITIZE:= -fsanitize-nullability-return
#
# Uncomment these values to disnose memory, thread, and crash issues on macOS:
# Uncomment these lines:
#
# DEBUG:= -O0 -g
# FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds
@@ -81,3 +85,13 @@
# LDFLAGS+= -Wno-invalid-command-line-argument ${FSANITIZE} -fno-omit-frame-pointer
# CALC_ENV+= ASAN_OPTIONS=detect_stack_use_after_return=1
####
####
# To reduce dependency chains under macOS:
#
# This comment block was tested under:
#
# macOS 13.5 with clang version 14.0.3 (clang-1403.0.22.14.1)
#
# LDFLAGS+= '-Wl,-dead_strip_dylibs -Wl,-dead_strip'
####