Commit 71d21577 authored by Tom Lane's avatar Tom Lane

Add '-Wl,' prefix to linker switches consistently. Remove shlib_symbolic

macros, which aren't used anywhere and haven't been for some time.
parent 96b42de9
...@@ -15,8 +15,7 @@ endif ...@@ -15,8 +15,7 @@ endif
ifeq ($(DLSUFFIX), .so) ifeq ($(DLSUFFIX), .so)
CFLAGS_SL = -fpic CFLAGS_SL = -fpic
rpath = -Wl,-rpath,$(rpathdir) rpath = -Wl,-rpath,$(rpathdir)
export_dynamic = -export-dynamic export_dynamic = -Wl,-export-dynamic
shlib_symbolic = -Wl,-Bsymbolic
else else
CFLAGS_SL = CFLAGS_SL =
endif endif
......
AROPT = cr AROPT = cr
ifdef ELF_SYSTEM ifdef ELF_SYSTEM
export_dynamic = -export-dynamic export_dynamic = -Wl,-export-dynamic
rpath = -R$(rpathdir) rpath = -Wl,-R$(rpathdir)
shlib_symbolic = -Wl,-Bsymbolic -lc
endif endif
DLSUFFIX = .so DLSUFFIX = .so
......
...@@ -33,7 +33,6 @@ endif ...@@ -33,7 +33,6 @@ endif
# set up appropriate options for shared library builds # set up appropriate options for shared library builds
export_dynamic = -Wl,-E export_dynamic = -Wl,-E
shlib_symbolic = -Bsymbolic
INSTALL_SHLIB_OPTS = -m 555 INSTALL_SHLIB_OPTS = -m 555
......
MK_NO_LORDER= true MK_NO_LORDER= true
AROPT = crs AROPT = crs
rpath = -Wl,-rpath,$(rpathdir) rpath = -Wl,-rpath,$(rpathdir)
shlib_symbolic = -Wl,-B,symbolic
DLSUFFIX = .so DLSUFFIX = .so
# PIC is default # PIC is default
......
AROPT = crs AROPT = crs
export_dynamic = -Wl,-E export_dynamic = -Wl,-E
rpath = -Wl,-rpath,$(rpathdir) rpath = -Wl,-rpath,$(rpathdir)
shlib_symbolic = -Wl,-Bsymbolic
allow_nonpic_in_shlib = yes allow_nonpic_in_shlib = yes
DLSUFFIX = .so DLSUFFIX = .so
......
...@@ -3,9 +3,8 @@ AROPT = cr ...@@ -3,9 +3,8 @@ AROPT = cr
ifdef ELF_SYSTEM ifdef ELF_SYSTEM
export_dynamic = -Wl,-E export_dynamic = -Wl,-E
rpath = -Wl,-R$(rpathdir) rpath = -Wl,-R$(rpathdir)
shlib_symbolic = -Wl,-Bsymbolic -lc
else else
rpath = -R$(rpathdir) rpath = -Wl,-R$(rpathdir)
endif endif
DLSUFFIX = .so DLSUFFIX = .so
......
...@@ -2,8 +2,7 @@ AROPT = cr ...@@ -2,8 +2,7 @@ AROPT = cr
ifdef ELF_SYSTEM ifdef ELF_SYSTEM
export_dynamic = -Wl,-E export_dynamic = -Wl,-E
rpath = -R$(rpathdir) rpath = -Wl,-R$(rpathdir)
shlib_symbolic = -Wl,-Bsymbolic
endif endif
DLSUFFIX = .so DLSUFFIX = .so
......
AROPT = crs AROPT = crs
DLSUFFIX = .so DLSUFFIX = .so
CFLAGS_SL = CFLAGS_SL =
rpath = -rpath $(rpathdir) rpath = -Wl,-rpath -Wl,$(rpathdir)
%.so: %.o %.so: %.o
$(LD) -shared -expect_unresolved '*' -o $@ $< $(LD) -shared -expect_unresolved '*' -o $@ $<
......
AROPT = cr AROPT = cr
export_dynamic = -Wl,-Bexport export_dynamic = -Wl,-Bexport
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so DLSUFFIX = .so
ifeq ($(GCC), yes) ifeq ($(GCC), yes)
......
# $PostgreSQL: pgsql/src/makefiles/Makefile.solaris,v 1.11 2004/11/19 00:41:39 tgl Exp $ # $PostgreSQL: pgsql/src/makefiles/Makefile.solaris,v 1.12 2004/12/21 18:47:42 tgl Exp $
AROPT = crs AROPT = crs
...@@ -6,9 +6,8 @@ ifeq ($(with_gnu_ld), yes) ...@@ -6,9 +6,8 @@ ifeq ($(with_gnu_ld), yes)
export_dynamic = -Wl,-E export_dynamic = -Wl,-E
rpath = -Wl,-rpath,$(rpathdir) rpath = -Wl,-rpath,$(rpathdir)
else else
rpath = -R$(rpathdir) rpath = -Wl,-R$(rpathdir)
endif endif
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so DLSUFFIX = .so
ifeq ($(GCC), yes) ifeq ($(GCC), yes)
......
...@@ -12,7 +12,6 @@ else ...@@ -12,7 +12,6 @@ else
rpath = -Wl,-R$(rpathdir) rpath = -Wl,-R$(rpathdir)
endif endif
endif endif
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so DLSUFFIX = .so
ifeq ($(GCC), yes) ifeq ($(GCC), yes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment