# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.6 1999/01/17 06:18:08 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.7 1999/03/14 16:02:57 momjian Exp $
#
#-------------------------------------------------------------------------
ifdef BSD_SHLIB
install-shlib-dep := install-shlib
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ ifdef ELF_SYSTEM
+ LDFLAGS_SL := -x -Bshareable -soname $(shlib)
+ else
+ LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ endif
CFLAGS += $(CFLAGS_SL)
endif
endif
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax))
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
+#elif defined(__ELF__)
+ return dlsym(handle, name);
#else
void *vp;
char buf[BUFSIZ];
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.17 1999/02/13 23:18:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.18 1999/03/14 16:03:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#endif /* __m68k__ */
-#if defined(PPC)
+#if defined(__powerpc__)
/* Note: need a nice gcc constrained asm version so it can be inlined */
static void
tas_dummy()
");
}
-#endif /* PPC */
+#endif /* __powerpc__ */
#if defined(__mips)
static void
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.65 1999/02/13 23:19:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.66 1999/03/14 16:03:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
} /* EncodeTimeSpan() */
-#if defined(linux) && defined(PPC)
+#if defined(linux) && defined(__powerpc__)
int
datetime_is_epoch(double j)
{
mac68k:OpenBSD:*:*)
echo m68k-apple-openbsd${UNAME_RELEASE}
exit 0 ;;
+ macppc:NetBSD:*:*)
+ echo powerpc-apple-netbsd${UNAME_RELEASE}
+ exit 0;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
exit 0 ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd3*|freebsd4*) os=freebsd need_tas=no elf=yes ;;
freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
- netbsd*|openbsd*) os=bsd need_tas=no ;;
+ netbsd*)
+ os=bsd need_tas=no
+ case "$host_cpu" in
+ powerpc) elf=yes ;;
+ esac ;;
+ openbsd*) os=bsd need_tas=no ;;
dgux*) os=dgux need_tas=no ;;
aix*) os=aix need_tas=no ;;
nextstep*) os=nextstep need_tas=no ;;
#define HAS_TEST_AND_SET
#endif
+#if defined(__powerpc__)
+#define HAS_TEST_AND_SET
+typedef unsigned int slock_t;
+#endif
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
+#if !defined(__powerpc__)
typedef unsigned char slock_t;
+#endif
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
-#if defined(PPC)
+#if defined(__powerpc__)
typedef unsigned int slock_t;
#elif defined(__alpha)
/* #define HAVE_SIGSETJMP 1 */
#endif
-#if defined(PPC)
+#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.37 1999/03/06 22:58:11 tgl Exp $
+ * $Id: dt.h,v 1.38 1999/03/14 16:03:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define DATETIME_IS_NOEND(j) (j == DT_NOEND)
#define DATETIME_CURRENT(j) {j = DT_CURRENT;}
-#if defined(linux) && defined(PPC)
+#if defined(linux) && defined(__powerpc__)
extern int datetime_is_current(double j);
#define DATETIME_IS_CURRENT(j) datetime_is_current(j)
#endif
#define DATETIME_EPOCH(j) {j = DT_EPOCH;}
-#if defined(linux) && defined(PPC)
+#if defined(linux) && defined(__powerpc__)
extern int datetime_is_epoch(double j);
#define DATETIME_IS_EPOCH(j) datetime_is_epoch(j)
+ifdef ELF_SYSTEM
+LDFLAGS += -Wl,-E
+endif
%.so: %.o
+ifdef ELF_SYSTEM
+ $(LD) -x -Bshareable -o $@ $<
+else
$(LD) -x -r -o $<.obj $<
@echo building shared object $@
@rm -f $@.pic
@rm -f $@
$(LD) -x -Bshareable -Bforcearchive \
-o $@ $@.pic
+endif
QUERY: drop table ·×»»µ¡ÍѸì;
-ERROR: Relation ·×»»µ¡ÍѸì Does Not Exist!
+ERROR: Relation '·×»»µ¡ÍѸì' does not exist
QUERY: create table ·×»»µ¡ÍѸì (ÍѸì text, ʬÎॳ¡¼¥É varchar, È÷¹Í1A¤À¤è char(16));
QUERY: create index ·×»»µ¡ÍѸìindex1 on ·×»»µ¡ÍѸì using btree (ÍѸì);
QUERY: create index ·×»»µ¡ÍѸìindex2 on ·×»»µ¡ÍѸì using hash (ʬÎॳ¡¼¥É);