On Tue, 7 Jan 2003, Andy Polyakov wrote:

> > > > > 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:

True.

> 
> 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)

This option didn't work out very well.
...
making all in crypto/md5...
        cc -c -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_THREADS -Kthread -DOPENSSL_N
O_KRB5 -O -DFILIO_H -Kpentium -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -o mx86-elf.o mx
86-elf.s
UX:cc: ERROR: -o would overwrite mx86-elf.o
...
I guess cc only ignores directory portions of -o 

> 
> 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.
                                 ^^^^^
Only 9 of them (so far)
crypto/bf/Makefile.ssl
crypto/bn/Makefile.ssl
crypto/cast/Makefile.ssl
crypto/des/Makefile.ssl
crypto/md5/Makefile.ssl
crypto/rc4/Makefile.ssl
crypto/rc5/Makefile.ssl
crypto/ripemd/Makefile.ssl
crypto/sha/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.

I you REALLY don't like #3, just leave assembler support out
of UnixWare 2.x as it is quit old.
The existing rules (in HEAD) work fine for UnixWare 7.x, OpenUNIX 8.0.0,
& SCO Open Server 5 (current shipping products)

-- 
Tim Rice                                Multitalents    (707) 887-1469
[EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to