# Option "freeze" such as -std=gnu9x can't negatively interfere
# with future defaults for below two targets, because MacOS X
# for PPC has no future, it was discontinued by vendor in 2009.
+ "darwin8-ppc-cc" => {
+ inherit_from => [ "darwin-ppc" ],
+ disable => [ "async" ]
+ },
"darwin-ppc-cc" => { inherit_from => [ "darwin-ppc" ] }, # Historic alias
"darwin-ppc" => {
inherit_from => [ "darwin-common" ],
asm_arch => 'ppc32',
perlasm_scheme => "osx32",
},
+ "darwin8-ppc64-cc" => {
+ inherit_from => [ "darwin64-ppc" ],
+ disable => [ "async" ]
+ },
"darwin64-ppc-cc" => { inherit_from => [ "darwin64-ppc" ] }, # Historic alias
"darwin64-ppc" => {
inherit_from => [ "darwin-common" ],
# include "crypto/rand_pool.h"
# if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM)
-# include <Availability.h>
+# if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
+# include <Availability.h>
+# else
+# include <TargetConditionals.h>
+# include <AvailabilityMacros.h>
+# endif
# if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \
(defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000)
# define OPENSSL_APPLE_CRYPTO_RANDOM 1
# define OSSL_UINTMAX_MAX __MAXUINT__(ossl_uintmax_t)
# endif
+/* Fix for cross compiling 64-bit PowerPC on OS X 10.4 */
+# if defined(__APPLE__) && defined(_ARCH_PPC64)
+# ifdef SIZE_MAX
+# undef SIZE_MAX
+# endif
+# define SIZE_MAX __MAXUINT__(uint64_t)
+# endif
+
#endif
# define timezone _timezone
#endif
-#if defined(__FreeBSD__) || defined(__wasi__)
+#if defined(__FreeBSD__) || defined(__wasi__) || \
+ (defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM) && \
+ !(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050))
# define USE_TIMEGM
#endif
],
[ 'Paragon.*?:.*', 'i860-intel-osf1' ],
[ 'Rhapsody:.*', 'ppc-apple-rhapsody' ],
+ [ 'Darwin:8.*?:.*?:Power.*', 'ppc-apple-darwin8' ],
[ 'Darwin:.*?:.*?:Power.*', 'ppc-apple-darwin' ],
[ 'Darwin:.*', '${MACHINE}-apple-darwin' ],
[ 'SunOS:5\..*', '${MACHINE}-whatever-solaris2' ],
}
],
[ 'ppc-apple-rhapsody', { target => "rhapsody-ppc" } ],
+ [ 'ppc-apple-darwin8.*',
+ sub {
+ my $KERNEL_BITS = $ENV{KERNEL_BITS} // '';
+ my $ISA64 = `sysctl -n hw.optional.64bitops 2>/dev/null`;
+ if ( $ISA64 == 1 && $KERNEL_BITS eq '' ) {
+ print <<EOF;
+WARNING! To build 64-bit package, do this:
+ $WHERE/Configure darwin8-ppc64-cc
+EOF
+ maybe_abort();
+ }
+ return { target => "darwin8-ppc64-cc" }
+ if $ISA64 == 1 && $KERNEL_BITS eq '64';
+ return { target => "darwin8-ppc-cc" };
+ }
+ ],
[ 'ppc-apple-darwin.*',
sub {
my $KERNEL_BITS = $ENV{KERNEL_BITS} // '';