Compile shared library code with -fPIC. Also, alphabetize.
authorIan Lance Taylor <iant@google.com>
Sat, 1 Dec 2007 06:50:09 +0000 (06:50 +0000)
committerIan Lance Taylor <iant@google.com>
Sat, 1 Dec 2007 06:50:09 +0000 (06:50 +0000)
gold/Makefile.am
gold/Makefile.in
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in

index 84c39b928e9de295f5642bbef36361e2f9e2f26f..59501c6477b844fe70fb29f61c7e2bfb09e32f97 100644 (file)
@@ -50,8 +50,8 @@ CCFILES = \
        reloc.cc \
        resolve.cc \
        script.cc \
-       symtab.cc \
        stringpool.cc \
+       symtab.cc \
        target-select.cc \
        version.cc \
        workqueue.cc \
index cae55244ea8c551a0d271416714cd343e011bdfd..93457019f340d80c67b8146b910ef3ac818bf978 100644 (file)
@@ -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 \
index 1b0da6e945c7e0e443899731f59d8aec19950e0b..c7a55718fe8dec25a8aca1b350271f8b018c6ee7 100644 (file)
@@ -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>$@; \
index a3d6aa59ef350a392f17d27f96f85b7e3e9fa1fd..f6a3c202e861dedb2c27e07f92716df424e91cc8 100644 (file)
@@ -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>$@; \