11# HG changeset patch
2- # Parent 25a9af415e8c3faf591c360d5f0e361d049b2b43
2+ # Parent ff8a7557607cffd626997e57ed31c1012a3018aa
33# openssl_sdk_makedepend.patch
44#
5- # using openssl 1.0.2d
5+ # using openssl 1.0.2e
66#
77# - support building with an OS X SDK
88# - allow "make depend" to use compilers with names other than "gcc"
@@ -12,7 +12,7 @@ diff Configure
1212diff --git a/Configure b/Configure
1313--- a/Configure
1414+++ b/Configure
15- @@ -617 ,12 +617 ,12 @@
15+ @@ -635 ,12 +635 ,12 @@
1616
1717 ##### MacOS X (a.k.a. Rhapsody or Darwin) setup
1818 "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::",
@@ -31,24 +31,26 @@ diff --git a/Configure b/Configure
3131 "debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
3232 # iPhoneOS/iOS
3333 "iphoneos-cross","llvm-gcc:-O3 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fomit-frame-pointer -fno-common::-D_REENTRANT:iOS:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
34- @@ -1685,7 +1685 ,7 @@
34+ @@ -1714,8 +1714 ,7 @@
3535 s/^CC=.*$/CC= $cc/;
3636 s/^AR=\s*ar/AR= $ar/;
3737 s/^RANLIB=.*/RANLIB= $ranlib/;
3838- s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc";
39- + s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/;
39+ - s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $ecc eq "gcc" || $ecc eq "clang";
40+ + s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/
4041 }
4142 s/^CFLAG=.*$/CFLAG= $cflags/;
4243 s/^DEPFLAG=.*$/DEPFLAG=$depflags/;
4344diff --git a/util/domd b/util/domd
4445--- a/util/domd
4546+++ b/util/domd
46- @@ -14,7 +14,7 @@
47+ @@ -14,8 +14,7 @@
4748 cp Makefile Makefile.save
4849 # fake the presence of Kerberos
4950 touch $TOP/krb5.h
50- - if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
51- + if true ; then # was: if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
51+ - if ${MAKEDEPEND} --version 2>&1 | grep -q "clang" ||
52+ - echo $MAKEDEPEND | grep -q "gcc"; then
53+ + if true ; then
5254 args=""
5355 while [ $# -gt 0 ]; do
5456 if [ "$1" != "--" ]; then args="$args $1"; fi
0 commit comments