Skip to content

Commit

Permalink
add Makefile.local comments for macOS reduce dependency chains
Browse files Browse the repository at this point in the history
  • Loading branch information
lcn2 committed Aug 12, 2023
1 parent f025dcf commit da623e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
22 changes: 18 additions & 4 deletions Makefile.local
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#
Expand All @@ -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
Expand All @@ -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)
#
Expand All @@ -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
Expand All @@ -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'
####

0 comments on commit da623e1

Please sign in to comment.