From da623e13cb1b46a4fb2036fa1f21f7a3b25f20fa Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 12 Aug 2023 16:14:11 -0700 Subject: [PATCH] add Makefile.local comments for macOS reduce dependency chains --- CHANGES | 3 +++ Makefile.local | 22 ++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 4de7f05..bac3725 100644 --- a/CHANGES +++ b/CHANGES @@ -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: diff --git a/Makefile.local b/Makefile.local index c2e7215..f4177ca 100644 --- a/Makefile.local +++ b/Makefile.local @@ -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' +####