[Scummvm-git-logs] scummvm master -> dbcc0b6b900ab1d92a438bbb58b109878110aa34
criezy
noreply at scummvm.org
Fri Dec 6 15:39:51 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dbcc0b6b90 BUILD, MACOS: Restrict -force_cpusubtype_ALL flag to MacOS X PPC
Commit: dbcc0b6b900ab1d92a438bbb58b109878110aa34
https://github.com/scummvm/scummvm/commit/dbcc0b6b900ab1d92a438bbb58b109878110aa34
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2024-12-06T15:39:14Z
Commit Message:
BUILD, MACOS: Restrict -force_cpusubtype_ALL flag to MacOS X PPC
Changed paths:
configure
ports.mk
diff --git a/configure b/configure
index 9c05aa9e534..c5eeb890d7c 100755
--- a/configure
+++ b/configure
@@ -3075,9 +3075,17 @@ EOF
add_line_to_config_mk 'MACOSX_64_BITS_ONLY = 1'
fi
fi
- if test "$_host_cpu" = "aarch64" ; then
+
+ case $_host_cpu in
+ powerpc*)
+ # We use -force_cpusubtype_ALL to ensure the binary runs on every
+ # PowerPC machine.
+ append_var LDFLAGS "-force_cpusubtype_ALL"
+ ;;
+ aarch64)
add_line_to_config_mk 'MACOSX_ARM64 = 1'
- fi
+ ;;
+ esac
# Avoid "file has no symbols" noise from ranlib, if it's new enough
ranlib_version=`$_ranlib -V 2>/dev/null`
diff --git a/ports.mk b/ports.mk
index f304df3588a..b0e89fd0fe6 100644
--- a/ports.mk
+++ b/ports.mk
@@ -588,10 +588,8 @@ endif
endif
# Special target to create a static linked binary for macOS.
-# We use -force_cpusubtype_ALL to ensure the binary runs on every
-# PowerPC machine.
scummvm-static: $(DETECT_OBJS) $(OBJS)
- +$(LD) $(LDFLAGS) -force_cpusubtype_ALL -o scummvm-static $(PRE_OBJS_FLAGS) $(DETECT_OBJS) $(OBJS) $(POST_OBJS_FLAGS) \
+ +$(LD) $(LDFLAGS) -o scummvm-static $(PRE_OBJS_FLAGS) $(DETECT_OBJS) $(OBJS) $(POST_OBJS_FLAGS) \
-framework CoreMIDI \
$(OSX_STATIC_LIBS) \
$(OSX_ZLIB)
More information about the Scummvm-git-logs
mailing list