compilation on sparc_solaris - Mailing list pgsql-hackers

From Shiby Thomas
Subject compilation on sparc_solaris
Date
Msg-id 199802021906.OAA00434@cise.ufl.edu
Whole thread Raw
In response to v6.3beta testing starting  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: compilation on sparc_solaris  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
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 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




pgsql-hackers by date:

Previous
From: ocie@paracel.com
Date:
Subject: Re: [HACKERS] subquery syntax broken
Next
From: teunis
Date:
Subject: Re: [HACKERS] (: JDBC+(Sun ~3:pm MST) CVS :) -also question about regression tests