[Scummvm-git-logs] scummvm master -> 25f8cf5ebada2145e4840124aed0ce2ab637b9c3

dwatteau noreply at scummvm.org
Wed Dec 11 15:08:00 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:
25f8cf5eba CONFIGURE: MACOS: Link with -headerpad_max_install_names for OSX <= 10.5


Commit: 25f8cf5ebada2145e4840124aed0ce2ab637b9c3
    https://github.com/scummvm/scummvm/commit/25f8cf5ebada2145e4840124aed0ce2ab637b9c3
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2024-12-11T16:06:51+01:00

Commit Message:
CONFIGURE: MACOS: Link with -headerpad_max_install_names for OSX <= 10.5

Changed paths:
    configure


diff --git a/configure b/configure
index c5eeb890d7c..b490265b5b9 100755
--- a/configure
+++ b/configure
@@ -3059,6 +3059,13 @@ EOF
 			# When building for MacOS X 10.5 or below
 			if test "$_macos_min_version" -lt 1060 ; then
 				add_line_to_config_mk 'MACOSX_LEOPARD_OR_BELOW = 1'
+
+				# OSX 10.4/10.5 has no native C++11 support, thus we need to
+				# embed an updated libstdc++ in the bundle, and fix its
+				# dynamic references with install_name_tool(1), which requires
+				# linking with a bit of padding for the updated references.
+				append_var LDFLAGS "-Wl,-headerpad_max_install_names"
+
 				if test "$_debug_build" != no ; then
 					# Prefer DWARF over stabs on older OSX; this requires a
 					# newer GDB, but we need it for the updated toolchain




More information about the Scummvm-git-logs mailing list