Various fixes NETBSD/sparc related

From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
This commit is contained in:
Marc G. Fournier 1998-01-04 19:13:04 +00:00
parent a65e4484da
commit 0aa928764a
8 changed files with 65 additions and 11 deletions

View File

@ -34,7 +34,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.29 1997/12/20 00:22:06 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.30 1998/01/04 19:12:02 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -51,6 +51,14 @@ endif
OBJS = $(DIRS:%=%/SUBSYS.o) OBJS = $(DIRS:%=%/SUBSYS.o)
# kerberos flags
ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
LDFLAGS+= $(KRBLIBS)
endif
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source \ all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source \
global1.description local1_template1.description global1.description local1_template1.description
@ -121,7 +129,6 @@ install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
global1.bki.source local1_template1.bki.source \ global1.bki.source local1_template1.bki.source \
global1.description local1_template1.description \ global1.description local1_template1.description \
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres $(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
ifeq ($(MAKE_EXPORTS), true) ifeq ($(MAKE_EXPORTS), true)
$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP) $(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.4 1997/04/26 06:13:31 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.5 1998/01/04 19:12:06 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -18,6 +18,14 @@ OBJS= pg_dump.o common.o @STRDUP@
CFLAGS+= -I$(LIBPQDIR) CFLAGS+= -I$(LIBPQDIR)
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
all: submake pg_dump all: submake pg_dump
pg_dump: $(OBJS) $(LIBPQDIR)/libpq.a pg_dump: $(OBJS) $(LIBPQDIR)/libpq.a

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.6 1997/04/26 05:05:20 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.7 1998/01/04 19:12:11 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -16,6 +16,14 @@ include ../../Makefile.global
OBJS= pg_id.o OBJS= pg_id.o
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
all: pg_id all: pg_id
pg_id: $(OBJS) $(LIBPQDIR)/libpq.a pg_id: $(OBJS) $(LIBPQDIR)/libpq.a

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.5 1997/04/26 05:06:40 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.6 1998/01/04 19:12:21 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -16,6 +16,14 @@ include ../../Makefile.global
CFLAGS+= -I$(LIBPQDIR) CFLAGS+= -I$(LIBPQDIR)
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
OBJS= psql.o stringutils.o @STRDUP@ OBJS= psql.o stringutils.o @STRDUP@
all: submake psql all: submake psql

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.14 1997/12/30 04:01:28 scrappy Exp $ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.15 1998/01/04 19:12:38 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -241,12 +241,11 @@ tas_dummy()
static int tas(slock_t *lock); static int tas(slock_t *lock);
static int static void
tas_dummy() tas_dummy()
{ {
asm(".seg \"data\""); asm(".seg \"data\"");
asm(".seg \"text\""); asm(".seg \"text\"");
asm(".global _tas");
asm("_tas:"); asm("_tas:");
/* /*
@ -321,7 +320,7 @@ void S_LOCK(slock_t* lock);
#endif /* defined(__alpha__) && defined(linux) */ #endif /* defined(__alpha__) && defined(linux) */
#if (defined(linux) || defined(__NetBSD__)) && defined(sparc) #if defined(linux) && defined(sparc)
#define S_LOCK(lock) do \ #define S_LOCK(lock) do \
{ \ { \

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/bench/Attic/Makefile,v 1.4 1997/07/28 23:57:20 momjian Exp $ # $Header: /cvsroot/pgsql/src/test/bench/Attic/Makefile,v 1.5 1998/01/04 19:12:48 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -19,6 +19,14 @@ OUTFILES= bench.out bench.out.perquery
CFLAGS+= -I$(LIBPQDIR) $(CFLAGS_SL) CFLAGS+= -I$(LIBPQDIR) $(CFLAGS_SL)
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
all: $(CREATEFILES) all: $(CREATEFILES)
rm -f $(OUTFILES) rm -f $(OUTFILES)

View File

@ -3,6 +3,14 @@ include ../../Makefile.global
CFLAGS+= -I../../include -I$(LIBPQDIR) CFLAGS+= -I../../include -I$(LIBPQDIR)
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
all: complex$(DLSUFFIX) funcs$(DLSUFFIX) all: complex$(DLSUFFIX) funcs$(DLSUFFIX)
clean: clean:

View File

@ -4,7 +4,7 @@
# Makefile for tutorial # Makefile for tutorial
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.5 1997/01/05 21:17:45 bryanh Exp $ # $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.6 1998/01/04 19:12:55 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -13,6 +13,14 @@ include ../Makefile.global
CFLAGS+= -I$(LIBPQDIR) -I../../include CFLAGS+= -I$(LIBPQDIR) -I../../include
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
# #
# DLOBJS is the dynamically-loaded object files. The "funcs" queries # DLOBJS is the dynamically-loaded object files. The "funcs" queries
# include CREATE FUNCTIONs that load routines from these files. # include CREATE FUNCTIONs that load routines from these files.