Re: compilation on sparc_solaris

Marc G. Fournier <scrappy@hub.org>

From: The Hermit Hacker <scrappy@hub.org>
To: Shiby Thomas <sthomas@cise.ufl.edu>
Cc: pgsql-hackers@postgreSQL.org, pgsql-ports@postgreSQL.org
Date: 1998-02-03T00:46:20Z
Lists: pgsql-hackers
On Mon, 2 Feb 1998, Shiby Thomas wrote:

> Hi,
> 
> It looks like the compilation problem on sparc_solaris is due to some
> inconsistencies in the Makefiles. The -D$(PORTNAME) is not passed in 
> CFLAGS. I made the foll. changes and it compiled fine.

	I hate to ask, but what version is the port for?  We already
removed all the PORTNAME stuff for v6.3 ;(



> I am attaching the diffs that I made to the Makefiles. Please let me know
> if they are correct and if so fix them in the main source tree.
> src/Makefile.global.in :
> 47,53d46
> < # Note that portname is defined here to be UNDEFINED to remind you
> < # to change it in Makefile.custom.
> < #
> < # make sure that you have no whitespaces after the PORTNAME setting
> < # or the makefiles can get confused
> < PORTNAME= @PORTNAME@
> < 
> 285,287d279
> < 
> < # Globally pass PORTNAME
> < CFLAGS+= -D$(PORTNAME)
> 
> src/backend/Makefile:
> 71c71
> <       $(MAKE) -C $(subst .dir,,$@) all PORTNAME=$(PORTNAME)
> ---
> >       $(MAKE) -C $(subst .dir,,$@) all 
> 107c107
> <       for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done
> ---
> >       for i in $(DIRS); do $(MAKE) -C $$i clean; done
> 110c110
> <       for i in $(DIRS); do $(MAKE) -C $$i $@ PORTNAME=$(PORTNAME); done
> ---
> >       for i in $(DIRS); do $(MAKE) -C $$i $@; done
> 171c171
> <       ./makeID $(PORTNAME)
> ---
> >       ./makeID 
> 
> src/backend/port/Makefile: (Here I think the fix should be in Makefile.in; I 
> just edited the Makefile to try if it fixes problem)
> 28c28
> < OBJS = $(PORTNAME)/SUBSYS.o dynloader.o inet_aton.o   
> ---
> > OBJS = dynloader.o inet_aton.o   
> 31c31
> < all: submake SUBSYS.o
> ---
> > all: SUBSYS.o
> 37,39d36
> < 
> < submake:
> <       $(MAKE) -C $(PORTNAME) SUBSYS.o
> 
> --shiby
> 
> 

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org