Skip to content

Commit

Permalink
Darwin, Arm64: Recognize arm64-darwin in libtool.
Browse files Browse the repository at this point in the history
Handle arm64/aarch64 in libtool.  At present either treat as equivalent
to other darwin platforms or default to neutral settings unless/until we
find we need something different.

In particular, don't adopt the blanket mapping of undefined symbols
to dynamic lookup - that should be done specifically on a case-by-case
basis.
  • Loading branch information
iains committed Nov 14, 2020
1 parent 229d841 commit d6d94ab
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions libtool.m4
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,18 @@ _LT_EOF
rm -f conftest.err libconftest.a conftest conftest.c
rm -rf conftest.dSYM
])
case $host_os in
rhapsody* | darwin1.[[012]])
case $host_cpu-$host_os in
aarch64-darwin* | arm64*-darwin* )
# For the present, we'll default this which means that all symbols need to
# be resolved. If there are specific libraries or cases that should have
# undefined = dynamic_lookup, those should be adjusted specially rather than
# having this as a blanket setting.
;;
*-rhapsody* | *-darwin1.[[012]])
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
darwin1.*)
*-darwin1.*)
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
darwin*) # darwin 5.x on
*-darwin*) # darwin 5.x on
# if running on 10.5 or later, the deployment target defaults
# to the OS version, if on x86, and 10.4, the deployment
# target defaults to 10.4. Don't you love it?
Expand Down Expand Up @@ -1033,7 +1039,7 @@ _LT_EOF

# _LT_DARWIN_LINKER_FEATURES
# --------------------------
# Checks for linker and compiler features on darwin
# Checks for linker and compiler features on darwin / macos / ios
m4_defun([_LT_DARWIN_LINKER_FEATURES],
[
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
Expand Down

0 comments on commit d6d94ab

Please sign in to comment.