index 838f880469d75a265652b1071ed5cca8a02530cc..60ead6597c9eed5aebdad5025062844897e0961e 100644 (file)
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.2 1998年10月28日 06:49:04 thomas Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.3 1998年10月31日 03:58:51 scrappy Exp $
#
#-------------------------------------------------------------------------
# Makefile.global (or really Makefile.port) to supply DLSUFFIX and other
# symbols.
+ifeq ($(PORTNAME), freebsd)
+ ifdef BSD_SHLIB
+ install-shlib-dep := install-shlib
+ shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+ ifdef ELF_SYSTEM
+ LDFLAGS_SL := -x -Bshareable
+ else
+ LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ endif
+ CFLAGS += $(CFLAGS_SL)
+ endif
+endif
+
ifeq ($(PORTNAME), bsd)
ifdef BSD_SHLIB
install-shlib-dep := install-shlib
- shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- LDFLAGS_SL := -x -Bshareable -Bforcearchive
- CFLAGS += $(CFLAGS_SL)
+ shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+ LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ CFLAGS += $(CFLAGS_SL)
endif
endif
index 1bfe87c27d77fad0ea53b0b2cd34433baaa47ca2..277b4783a2c950da141c8ad340929d5b1e91e880 100755 (executable)
linux*) os=linux need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd3*) os=freebsd need_tas=no elf=yes ;;
- freebsd1*) os=freebsd need_tas=no ;;
+ freebsd12*) os=freebsd need_tas=no ;;
netbsd*|openbsd*) os=bsd need_tas=no ;;
dgux*) os=dgux need_tas=no ;;
aix*) os=aix need_tas=no ;;
index 8e182039619f4bd998a6dda8330edbf5a3e805de..6293c599a978ca1cb3d91753c81c590c64f7b63b 100644 (file)
linux*) os=linux need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd3*) os=freebsd need_tas=no elf=yes ;;
- freebsd1*) os=freebsd need_tas=no ;;
+ freebsd[12]*) os=freebsd need_tas=no ;;
netbsd*|openbsd*) os=bsd need_tas=no ;;
dgux*) os=dgux need_tas=no ;;
aix*) os=aix need_tas=no ;;
index 4a852a4b04ec45bb1a17459eb7d9f3d71e23937a..46f5a7f961c9fcf86c0e4a7236450eb4f8e2a35e 100644 (file)
@${AR} cq $@.pic `lorder $<.obj | tsort`
${RANLIB} $@.pic
@rm -f $@
-ifdef ELF_SYSTEM
- $(LD) -x -Bshareable -o $@ $@.pic
-else
- $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
-endif
+ifdef ELF_SYSTEM
+ $(LD) -x -Bshareable -o $@ $@.pic
+else
+ $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
+endif