cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Detecting HP native C compiler on HP-UX

From: Michael Osipov <1983-01-06_at_gmx.net>
Date: Sun, 24 May 2015 12:46:44 +0200

Am 2015-05-24 um 11:10 schrieb Michael Wood:
> On 24 May 2015 10:17 AM, "Michael Osipov" <1983-01-06_at_gmx.net> wrote:
>>
>> Am 2015-05-24 um 08:37 schrieb Michael Wood:
>>>
>>> Why does curl need to know it's being
>>> compiled by the HP native compiler?
>>
>> In order ti properly set compiler flags.
>
> But what does "properly" mean given that it works either way?

Properly means that HP aCC has some different compiler flags compared to
GCC and will issue a warning. HP ld will even fail.

The reason why it still works is that configure detects cc without
knowing that is is HP aCC and probably uses default flags, though I did
not verify this.

Michael

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-24