On Wed, Jan 2, 2013 at 5:07 AM, Jakob Bohm <[email protected]> wrote:
> On 1/2/2013 9:34 AM, Jeffrey Walton wrote:
>>
>> On Mon, Dec 31, 2012 at 7:00 AM, Ben Laurie <[email protected]> wrote:
>>>
>>> On Mon, Dec 31, 2012 at 11:39 AM, Jeffrey Walton <[email protected]>
>>> wrote:
>>>>
>>>> On Sun, Dec 30, 2012 at 3:20 PM,  <[email protected]> wrote:
>>>>>
>>>>> On 30-12-2012 21:01, Jeffrey Walton wrote:
>>>>>>
>>>>>>
>>>>>> ....
>>>>
>>>>
>>>> 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!
>>
>> I'm in a cross-compile environment. Perhaps its due to grepping for
>> "^gcc", while OS X will have "llvm-gcc"?
>>
>> Its just speculation since I did not see that in 'config' and
>> 'Configure' when I looked.
>
> Note that in standard IOS builds, cc is "cc" or "gcc" for backward
> compatibility, but it is really the llvm-clang compiler (not the llvm-gcc
> compiler, which is a different part of the llvm project).
Ah, good eye for details. I never made the distinction though I new
Clang was in play.

> Also note that "as" is (or at least recently was) the  Apple fork of GNU as,
> not the llvm assembler (again, this is for iOS).
Yes, this has given me trouble more than once when I hand cod ARM
assembly in an iOS project. Apple's 'as' would not recognize the ADDS
instruction in Thumb mode (the routine needed access to the status
register for carry/overflow). I had to emit the byte codes by hand:

__asm__
(
  "ldr  r0, %[xa]   ;"  // R0 = a
  "ldr  r1, %[xb]   ;"  // R1 = b
  ".inst.w 0x1809   ;"  // Issue 'adds r1, r1, r0'
  ...
);

Jeff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to