> > > > The cc on UnixWare 2.x doesn't handle -o asm/xx86-elf.o
> > > > It just creates it in the curent directory.
> >
> > ??? Does it mean that cc driver effectively ignores -o option? Or does
> > it mean that make doesn't pass -o option to cc driver when compiling .s
> > files? If former, does it apply to .s files only? A.
> 
> It seems to ignore the -o option completely when the -c option is present.

This is just plain lame, if you ask me... Options:

1. Move *-elf.[os] one level up, e.g.:

dx86-elf.s:     asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
        (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > ../dx86-elf.s)

2. Document this case in FAQ advising users to put the suggested rule
into system-wide make.rules or drop a cc wrapper covering up for broken
cc first on their $PATH.

3. Put the suggested rule into every Makefile.ssl.

> s.o:
>         @$(CC) $(CFLAGS) -c $< -o $@
>         -if test -f `echo $@ | sed 's%^.*/%%g'` ; then \
>                 mv `echo $@ | sed 's%^.*/%%g'` $@ ; fi

My vote is #1 and absolutely not #3. A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to