# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.40 2001/02/10 16:26:38 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.41 2001/02/10 16:51:39 petere Exp $
#
#-------------------------------------------------------------------------
ifeq ($(PORTNAME), bsdi)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifeq ($(DLSUFFIX), .so)
- LINK.shared = $(LD) -shared -soname $(soname)
+ LINK.shared = $(COMPILER) -shared -Wl,-soname,$(soname)
+ SHLIB_LINK += -lc
endif
ifeq ($(DLSUFFIX), .o)
LINK.shared = shlicc -O $(LDREL)
#
# GNUMakefile for psqlodbc (Postgres ODBC driver)
#
-# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.11 2001/02/10 15:59:16 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.12 2001/02/10 16:51:40 petere Exp $
#
#-------------------------------------------------------------------------
# Symbols must be resolved to the version in the shared library because
# the driver manager (e.g., iodbc) provides some symbols with the same
# names and we don't want those. (This issue is probably ELF specific.)
-#
-# BSD/OS fails with libc and crt1.o undefined symbols without this.
-# bjm 2001-02-09
-#
-ifneq ($(PORTNAME), bsdi)
+
LINK.shared += $(shlib_symbolic)
-else
-LINK.shared = gcc -shared -Wl,-Bsymbolic,-soname,$(soname)
-SHLIB_LINK += -lc
-endif
odbc_headers = isql.h isqlext.h iodbc.h
odbc_includedir = $(includedir)/iodbc
ifeq ($(DLSUFFIX), .so)
CFLAGS_SL = -fpic
export_dynamic = -export-dynamic
-shlib_symbolic = -Bsymbolic
+shlib_symbolic = -Wl,-Bsymbolic
else
CFLAGS_SL =
endif
%.so: %.o
- $(LD) -shared -o $@ $<
+ $(CC) -shared -o $@ $<