Separate -Wl,-E or equivalent into separate make variable, since it's only

necessary for the postgres/postmaster link, not every link.
This commit is contained in:
Peter Eisentraut 2000-10-07 18:43:23 +00:00
parent 450b62138d
commit a3578c13e6
12 changed files with 16 additions and 14 deletions

View File

@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.65 2000/09/17 13:02:30 petere Exp $
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.66 2000/10/07 18:43:22 petere Exp $
#
#-------------------------------------------------------------------------
@ -37,7 +37,7 @@ all: postgres $(POSTGRES_IMP)
ifneq ($(PORTNAME), win)
postgres: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(export_dynamic)
else # win
@ -192,7 +192,7 @@ maintainer-clean: distclean
# are up to date. It saves the time of doing all the submakes.
.PHONY: quick
quick: $(OBJS)
$(CC) -o postgres $(OBJS) $(LDFLAGS)
$(CC) -o postgres $(OBJS) $(LDFLAGS) $(export_dynamic)
depend dep: $(top_srcdir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
for i in $(DIRS); do $(MAKE) -C $$i $@; done

View File

@ -1,6 +1,6 @@
MK_NO_LORDER=true
ifdef ELF_SYSTEM
LDFLAGS += -Wl,-E
export_dynamic = -Wl,-E
CPPFLAGS+= -I$(top_srcdir)/src/backend/port/beos
endif
%.so: %.o

View File

@ -2,7 +2,7 @@
# if we defined .so in template/bsdi_4.0
ifeq ($(DLSUFFIX), .so)
LDFLAGS+= -export-dynamic
export_dynamic = -export-dynamic
endif
%.so: %.o

View File

@ -1,5 +1,5 @@
ifdef ELF_SYSTEM
LDFLAGS+= -export-dynamic
export_dynamic = -export-dynamic
endif
%.so: %.o

View File

@ -23,7 +23,8 @@ endif
# so that the executables don't need SHLIB_PATH to be set, specify -z
# to catch null pointer dereferences, and specify -E to make all symbols
# visible to dynamically linked shared libraries.
LDFLAGS+= -Wl,+b -Wl,$(libdir) -Wl,-z -Wl,-E
LDFLAGS+= -Wl,+b -Wl,$(libdir) -Wl,-z
export_dynamic = -Wl,-E
# Rule for building shared libs (currently used only for regression test
# shlib ... should go away, since this is not really enough knowledge)

View File

@ -1,4 +1,4 @@
LDFLAGS+= -export-dynamic
export_dynamic = -export-dynamic
MK_NO_LORDER= true
%.so: %.o

View File

@ -1,5 +1,5 @@
ifdef ELF_SYSTEM
LDFLAGS += -Wl,-E
export_dynamic = -Wl,-E
endif
%.so: %.o
ifdef ELF_SYSTEM

View File

@ -1,5 +1,5 @@
ifdef ELF_SYSTEM
LDFLAGS += -Wl,-E
export_dynamic = -Wl,-E
endif
%.so: %.o
ifdef ELF_SYSTEM

View File

@ -1,5 +1,5 @@
CFLAGS += -dy
LDFLAGS += -W l,-Bexport
export_dynamic = -W l,-Bexport
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<

View File

@ -1,4 +1,5 @@
LDFLAGS+= -lc89 -Wl,-Bexport
LDFLAGS+= -lc89
export_dynamic = -Wl,-Bexport
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<

View File

@ -1,4 +1,4 @@
LDFLAGS+= -Wl,-Bexport
export_dynamic = -Wl,-Bexport
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<

View File

@ -7,7 +7,7 @@ if test "$GCC" = yes ; then
DL_LIB=/usr/lib/libdld.sl
CCC=g++
else
CFLAGS='-Wl,-E -Ae'
CFLAGS=-Ae
SHARED_LIB=+z
CPP='cc -E -Ae'
CCC=aCC