On Mon, Dec 31, 2012 at 11:39 AM, Jeffrey Walton <noloa...@gmail.com> wrote: > On Sun, Dec 30, 2012 at 3:20 PM, <jb-open...@wisemo.com> wrote: >> On 30-12-2012 21:01, Jeffrey Walton wrote: >>> >>> Hi All, >>> >>> While working on Apple with Mac OS X and iOS, I found I needed to >>> patch OpenSSL 1.0.1c's Makefile. >>> >>> Makefile.org has the following line, and it was copied directly into >>> Makefile by Configure: >>> >>> MAKEDEPPROG=makedepend >>> >>> When the Configure target is iphoneos (cross), iphonesimulator >>> (cross), or macosx (native), I need a different statement: >>> >>> MAKEDEPPROG=$(CC) -M >>> >>> I've looked at Configure, but I have no clue on the best way to handle >>> the support/additions needed. >>> >>> Can anyone offer some advice? >>> >> I have found the script build.sh from >> <https://github.com/st3fan/ios-openssl> >> to work nicely for iOS builds of 1.0.1c with no patching of openssl. >> (Admitted, I did adapt the script for our environment) > Thanks Jakob. I got to rest up last night and my mind is fresh (for > what that's worth). So here's a more concise request. Keep in mind > that Configure is a PERL script, and I have no practical PERL > experience. > > Configure should test `makeddepend`. If 'makedepend' succeeds, do > nothing. If 'makedepend' fails, it should patch the resulting Makefile > with "MAKEDEPEND=$(CC) -M' on Apple platforms. > > That's the behavior I am looking for. and the Makefile.org are > available online for inspection. > http://cvs.openssl.org/fileview?f=openssl/Configure&v=1.621.2.37.2.32.2.11 > http://cvs.openssl.org/fileview?f=openssl/Makefile.org&v=1.295.2.10.2.11.2.3
According to my reading of Configure (in 1.0.1 at least) it should already change makedepend to $cc, which should be specified by the platform. Not sure why it appears not to! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org