Make on SCO Open Server

Roger While <rogerwhile@sim-basis.de>

From: Roger While <RogerWhile@sim-basis.de>
To: pgsql-bugs@postgresql.org
Date: 2001-05-23T09:48:42Z
Lists: pgsql-bugs
Hi,
	Re. Making Pgsql on SCO Open Server
	Version 7.1.1

	Firstly, "make" blows with undefined symbol "NOFILE" in
	"src/backend/storage/file/fd.c". I temporarily changed this
	to a hard-coded value.
	After correcting this the Make actually completes; however; without 
creating
	any shared libraries, so that the "make install" blows.
	What's missing is the follwing in "src/Makefile.shlib"

ifeq ($(PORTNAME), sco)
   shlib                 := 
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   ifndef cplusplus
     ifeq ($(GCC), yes)
       LINK.shared       = $(CC) -shared
     else
       LINK.shared       = $(CC) -G
     endif
   else
     ifeq ($(GXX), yes)
       LINK.shared       = $(CXX) -shared
     else
       LINK.shared       = $(CXX) -G
     endif
   endif
   LINK.shared           += -Wl,-z,text -Wl,-h,$(soname)
endif



Regards


Roger While