Re: compilation on sparc_solaris - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: compilation on sparc_solaris
Date
Msg-id Pine.BSF.3.96.980202204552.12562t-100000@thelab.hub.org
Whole thread Raw
In response to compilation on sparc_solaris  (Shiby Thomas <sthomas@cise.ufl.edu>)
Responses Re: compilation on sparc_solaris  (Shiby Thomas <sthomas@cise.ufl.edu>)
Execution time.  (Shiby Thomas <sthomas@cise.ufl.edu>)
List 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


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Variable block size...
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Speed boost + Others