On 30-12-2012 21:34, Jeffrey Walton 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.

If you run the script with an "-no-xxx" option, how does it perform?
For example, try -no-dtls. A quick drive by did not reveal MAKEDEPEND
modification.
Sorry, didn't try that. I don't have the OS/X machine handy, so I can't test it right now.
What I found  (using the same tool chain): "-no-xxx"  requires a `make
depend`. 'make depend` fails on my 10.7 and 10.8 test machines because
Apple removed `makedepend` at 10.7.2 or 10.7.3. So I need to cut over
to `$(CC) -M`.
Isn't there a third party makedepend you could use, or a simple two line script like:

#!/bin/bash
${CC} -M "$@"


--
Jakob Bohm, CIO, partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark. direct: +45 31 13 16 10 <call:+4531131610>
This message is only for its intended recipient, delete if misaddressed.
WiseMo - Remote Service Management for PCs, Phones and Embedded
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to