Re: [PORTS] RedHat6.0 & Alpha

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Uncle George <gatgul@voicenet.com>
Cc: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>, pgsql-ports@postgreSQL.org
Date: 1999-07-20T02:46:51Z
Lists: pgsql-hackers
> Thats NOT THE PROBLEM.
> Although u have localize the  -mieee/float in the date stuff, u have needlessly
> inflicted the -mieee switch on ALL compiled modules.
> I would have prefered it to be makefile  ( Certainly on a SUBSYS.o, and even better on
> on a per module.o) compile under a makefile switch
> ie: ( or something simular )
> 
> if eq($(CPUID),alpha)
> myfloat.o:    myfloat.c
>     $(CC) $(CFLAGS) -mieee myfloat.c -o myfloat.o
> fi
> 

OK, I have added code in utils/adt/Makefile as:

	# seems to be required for some date/time stuff 07/19/1999 bjm
	ifeq ($(CPU),alpha)
	CFLAGS+= -mieee
	endif

This is in the current tree, not 6.5.1.  Please test and let me know if
this helps.  I also added a Makefile-visible variable called CPU.  Seems
we really don't have such a variable already available in the
Makefile-scope.



-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026