You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
477af2eda9
refs: https://trac.macports.org/ticket/65290 [note] other problem looks remain on 10.8 and 10.9. generating ext/-test-/RUBY_ALIGNOF/Makefile overwrites topdir's Makefile. - fix detecting macOS version in configure and dln.c - AvailabirityMacros.h does not contains macros future versions. for example, "MAC_OS_X_VERSION_10_10" does not defined in 10.9's headerfile. - fix dsymutil error at build phase when using macports-clang-* as configure.compiler. but this error might not affect build result. ``` $ sw_vers -productVersion 10.9.5 $ uname -r 13.4.0 $ cat conftest.c /* end confdefs.h. */ #include <AvailabilityMacros.h> int main () { static int test_array [1 - 2 * !(MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10)]; test_array [0] = 0; return test_array [0]; ; return 0; } $ cc -c conftest.c conftest.c:8:50: error: use of undeclared identifier 'MAC_OS_X_VERSION_10_10' MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10)]; ^ 1 error generated. ```
12 lines
390 B
Diff
12 lines
390 B
Diff
--- dln.c.orig 2022-04-12 20:11:15.000000000 +0900
|
|
+++ dln.c 2022-06-25 23:48:32.000000000 +0900
|
|
@@ -380,7 +380,7 @@
|
|
|
|
# if defined __APPLE__ && \
|
|
defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \
|
|
- (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11)
|
|
+ (MAC_OS_X_VERSION_MIN_REQUIRED < 101100)
|
|
/* dlclose() segfaults */
|
|
rb_fatal("%s - %s", incompatible, file);
|
|
# else
|