mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
fix use of -dead_strip_dylibs for macOS linker
This commit is contained in:
@@ -177,13 +177,7 @@ LIBCUSTCALC_SHLIB= -dynamiclib -undefined dynamic_lookup \
|
||||
# data that are unreachable by the entry point or exported symbols.
|
||||
#
|
||||
COMMON_LDFLAGS+= -Wl,-dead_strip
|
||||
|
||||
# We cannot use: COMMON_LDFLAGS+= -Wl,-dead_strip_dylibs
|
||||
#
|
||||
# The macOS ld documentation states that option should not be used
|
||||
# when linking against a dylib which is required at runtime for some
|
||||
# indirect reason such as the dylib has an important initializer.
|
||||
# The libcustcalc appears to have such an initializer.
|
||||
COMMON_LDFLAGS+= -Wl,-dead_strip_dylibs
|
||||
|
||||
# static library option
|
||||
#
|
||||
|
Reference in New Issue
Block a user