mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
changed macOS to not use "-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.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -89,8 +89,7 @@ The following are the changes from calc version 2.14.3.1 to date:
|
||||
|
||||
Under macOS, to reduce dependency chains, we remove functions and
|
||||
data that are unreachable by the entry point or exported symbols.
|
||||
In particular, the linker is run with "-dead_strip" and with
|
||||
"-dead_strip_dylibs".
|
||||
In particular, the linker is run with "-dead_strip".
|
||||
|
||||
|
||||
The following are the changes from calc version 2.14.2.1 to 2.14.3.0:
|
||||
|
@@ -165,7 +165,14 @@ LIBCUSTCALC_SHLIB= -dynamiclib -undefined dynamic_lookup \
|
||||
# To reduce dependency chains under macOS, we remove functions and
|
||||
# data that are unreachable by the entry point or exported symbols.
|
||||
#
|
||||
LDFLAGS+= -Wl,-dead_strip -Wl,-dead_strip_dylibs
|
||||
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.
|
||||
|
||||
# static library option
|
||||
#
|
||||
|
Reference in New Issue
Block a user