From c92003e082adbe60975da2701eac1ba03ecba486 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 1 Dec 2007 06:50:09 +0000 Subject: [PATCH] Compile shared library code with -fPIC. Also, alphabetize. --- gold/Makefile.am | 2 +- gold/Makefile.in | 4 ++-- gold/testsuite/Makefile.am | 6 +++--- gold/testsuite/Makefile.in | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gold/Makefile.am b/gold/Makefile.am index 84c39b928e9..59501c6477b 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -50,8 +50,8 @@ CCFILES = \ reloc.cc \ resolve.cc \ script.cc \ - symtab.cc \ stringpool.cc \ + symtab.cc \ target-select.cc \ version.cc \ workqueue.cc \ diff --git a/gold/Makefile.in b/gold/Makefile.in index cae55244ea8..93457019f34 100644 --- a/gold/Makefile.in +++ b/gold/Makefile.in @@ -78,7 +78,7 @@ am__objects_1 = archive.$(OBJEXT) common.$(OBJEXT) \ merge.$(OBJEXT) object.$(OBJEXT) options.$(OBJEXT) \ output.$(OBJEXT) parameters.$(OBJEXT) readsyms.$(OBJEXT) \ reloc.$(OBJEXT) resolve.$(OBJEXT) script.$(OBJEXT) \ - symtab.$(OBJEXT) stringpool.$(OBJEXT) target-select.$(OBJEXT) \ + stringpool.$(OBJEXT) symtab.$(OBJEXT) target-select.$(OBJEXT) \ version.$(OBJEXT) workqueue.$(OBJEXT) \ workqueue-threads.$(OBJEXT) am__objects_2 = @@ -307,8 +307,8 @@ CCFILES = \ reloc.cc \ resolve.cc \ script.cc \ - symtab.cc \ stringpool.cc \ + symtab.cc \ target-select.cc \ version.cc \ workqueue.cc \ diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 1b0da6e945c..c7a55718fe8 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -141,11 +141,11 @@ debug_msg.err: debug_msg.o odr_violation1.o odr_violation2.o gcctestdir/ld # See if we can also detect problems when we're linking .so's, not .o's. debug_msg.so: debug_msg.cc - $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/debug_msg.cc + $(CXXCOMPILE) -O0 -g -shared -fPIC-w -o $@ $(srcdir)/debug_msg.cc odr_violation1.so: odr_violation1.cc - $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/odr_violation1.cc + $(CXXCOMPILE) -O0 -g -shared -fPIC -w -o $@ $(srcdir)/odr_violation1.cc odr_violation2.so: odr_violation2.cc - $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/odr_violation2.cc + $(CXXCOMPILE) -O0 -g -shared -fPIC -w -o $@ $(srcdir)/odr_violation2.cc debug_msg_so.err: debug_msg.so odr_violation1.so odr_violation2.so gcctestdir/ld @echo $(CXXLINK) -Bgcctestdir/ -Wl,--detect-odr-violations -o debug_msg_so debug_msg.so odr_violation1.so odr_violation2.so "2>$@" @if $(CXXLINK) -Bgcctestdir/ -Wl,--detect-odr-violations -o debug_msg_so debug_msg.so odr_violation1.so odr_violation2.so 2>$@; \ diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index a3d6aa59ef3..f6a3c202e86 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -1230,11 +1230,11 @@ uninstall-am: uninstall-info-am # See if we can also detect problems when we're linking .so's, not .o's. @GCC_TRUE@@NATIVE_LINKER_TRUE@debug_msg.so: debug_msg.cc -@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/debug_msg.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -fPIC-w -o $@ $(srcdir)/debug_msg.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@odr_violation1.so: odr_violation1.cc -@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/odr_violation1.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -fPIC -w -o $@ $(srcdir)/odr_violation1.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@odr_violation2.so: odr_violation2.cc -@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -w -o $@ $(srcdir)/odr_violation2.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -shared -fPIC -w -o $@ $(srcdir)/odr_violation2.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@debug_msg_so.err: debug_msg.so odr_violation1.so odr_violation2.so gcctestdir/ld @GCC_TRUE@@NATIVE_LINKER_TRUE@ @echo $(CXXLINK) -Bgcctestdir/ -Wl,--detect-odr-violations -o debug_msg_so debug_msg.so odr_violation1.so odr_violation2.so "2>$@" @GCC_TRUE@@NATIVE_LINKER_TRUE@ @if $(CXXLINK) -Bgcctestdir/ -Wl,--detect-odr-violations -o debug_msg_so debug_msg.so odr_violation1.so odr_violation2.so 2>$@; \ -- 2.39.5