Re: [PATCH] Add Tru64/OSF1 support in Makefile
- From
- Tor Arntsen <tor@spacetec.no>
- Date
- Mar 31, 2010, 08:45 UTC
- Message-ID
- <d2d39d861003310145i3ee2422bn83946d465d375185@mail.gmail.com>
- In-Reply-To
- <7vfx3hqsaf.fsf@alter.siamese.dyndns.org>
On 31/03/2010, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Tor Arntsen <tor@spacetec.no> writes: > >> Patch included below, as well as attached (in case of >> mailler-mangling). Please let me know if you feel there are any issues >> with it. > > Thanks. > >> From d4a5ba0727d7e3a4455320bad641cb34402d16fd Mon Sep 17 00:00:00 2001 >> From: Tor Arntsen <tor@spacetec.no> >> Date: Tue, 30 Mar 2010 19:36:40 +0200 >> Subject: [PATCH] Add Tru64/OSF1 support in Makefile >> >> Tested with V5.1 > > V5.1 "of Tru64/OSF1" I presume...
Indeed. uname -r = V5.1. The system I have, and have thus tested this with, is actually Tru64 V5.1a, although the 'a' isn't easily visible. There's also a V5.1b revision, in addition to V5.2 and possibly even newer systems.
Show 8 quoted lines
>> +ifeq ($(uname_S),OSF1) >> + # Tested with V5.1 w/libcurl and zlib-1.1.4-5 in /usr/local/ >> + CC = cc >> + CFLAGS = -O2 -g3 > > Is this because the compiler there does not like -Wall? > > Not a complaint; just a request for clarification.
Two issues: -Wall, and that the native Tru64 compiler refuses to optimize if -O2 is combined with -g. Thus the -O2 -g3, which does work, and (and this is incidentally also the case for the IRIX MIPSPro compiler).
$ cc -g -O2 -o hello hello.c cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
-Tor