diff options
author | Richard Levitte <levitte@openssl.org> | 2016-05-10 23:22:29 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-05-12 10:54:25 +0200 |
commit | 3dfcb6a0ecbc210899e4b674331d0294189281b9 (patch) | |
tree | 2f20c7b3cbba632fcd0e877064ec0b1662028fbb /config | |
parent | Fix TLSProxy race by adding missing eval (diff) | |
download | openssl-3dfcb6a0ecbc210899e4b674331d0294189281b9.tar.xz openssl-3dfcb6a0ecbc210899e4b674331d0294189281b9.zip |
Add a case for 64-bit OS X in config
This makes it possible to just run ./config on a x86_64 machine with
no extra fuss.
RT#4356
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'config')
-rwxr-xr-x | config | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -261,6 +261,9 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in Power*) echo "ppc-apple-darwin${VERSION}" ;; + x86_64) + echo "x86_64-apple-darwin${VERSION}" + ;; *) echo "i686-apple-darwin${VERSION}" ;; @@ -503,7 +506,7 @@ case "$GUESSOS" in ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null` if [ "$ISA64" = "1" -a -z "$KERNEL_BITS" ]; then echo "WARNING! If you wish to build 64-bit library, then you have to" - echo " invoke '$THERE/Configure darwin64-x86_64-cc $options' *manually*." + echo " invoke 'KERNEL_BITS=64 $THERE/config $options'." if [ "$TEST" = "false" -a -t 1 ]; then echo " You have about 5 seconds to press Ctrl-C to abort." # The stty technique used elsewhere doesn't work on @@ -516,6 +519,22 @@ case "$GUESSOS" in else OUT="darwin-i386-cc" fi ;; + x86_64-apple-darwin*) + if [ -z "$KERNEL_BITS" ]; then + echo "WARNING! If you wish to build 32-bit library, then you have to" + echo " invoke 'KERNEL_BITS=32 $THERE/config $options'." + if [ "$TEST" = "false" -a -t 1 ]; then + echo " You have about 5 seconds to press Ctrl-C to abort." + # The stty technique used elsewhere doesn't work on + # MacOS. At least, right now on this Mac. + sleep 5 + fi + fi + if [ "$KERNEL_BITS" = "32" ]; then + OUT="darwin-i386-cc" + else + OUT="darwin64-x86_64-cc" + fi ;; armv6+7-*-iphoneos) options="$options -arch%20armv6 -arch%20armv7" OUT="iphoneos-cross" ;; |