mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
cleanup for LINUX_ELF
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.7 1997/01/10 17:40:07 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.8 1997/01/10 18:55:14 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -25,8 +25,12 @@ ifdef KRBVERS
|
||||
CFLAGS+= $(KRBFLAGS)
|
||||
endif
|
||||
|
||||
ifdef LINUX_ELF
|
||||
CFLAGS += -fPIC
|
||||
ifeq ($(PORTNAME), linux)
|
||||
ifdef LINUX_ELF
|
||||
ifeq ($(CC), gcc)
|
||||
CFLAGS += -fpic -fPIC
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
OBJS= pgtcl.o pgtclCmds.o pgtclId.o
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.25 1997/01/10 04:01:09 vadim Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.26 1997/01/10 18:55:24 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -32,16 +32,11 @@ OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-lobj.o \
|
||||
|
||||
shlib :=
|
||||
install-shlib-dep :=
|
||||
ifdef LINUX_ELF
|
||||
install-shlib-dep := install-shlib
|
||||
ifeq ($(PORTNAME), linux)
|
||||
shlib := libpq.so.1
|
||||
endif
|
||||
ifeq ($(PORTNAME), BSD44_derived)
|
||||
shlib := libpq.so.1.0
|
||||
CFLAGS+= -fpic -DPIC
|
||||
LDFLAGS=-Bshareable -Bforcearchive
|
||||
endif
|
||||
ifdef LINUX_ELF
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpq.so.1
|
||||
endif
|
||||
endif
|
||||
|
||||
all: libpq.a $(shlib) c.h
|
||||
|
||||
Reference in New Issue
Block a user