On 12/31/2012 12:39 PM, 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. 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.

Did you read my second post from last night (the one about me not trusting the "$(CC) -M" option on OS/X?).

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


I think this is better done by someone who is already familiar with that piece of code ("./Configure") and its design/style.


Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
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