From: Ian Lance Taylor Date: Sun, 23 Sep 2007 03:25:29 +0000 (+0000) Subject: Add static version of constructor test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb615bc189241f02996054391ade06ba06147147;p=binutils-gdb.git Add static version of constructor test. --- diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 01661aaeec8..ce2000e659c 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -22,10 +22,12 @@ NATIVE_TESTING = \ basic_pic_test \ basic_static_test \ basic_static_pic_test \ - constructor_test + constructor_test \ + constructor_static_test NATIVE_PROGS = \ - constructor_test + constructor_test \ + constructor_static_test endif endif @@ -68,5 +70,9 @@ constructor_test_SOURCES = constructor_test.cc constructor_test_DEPENDENCIES = gcctestdir/ld constructor_test_LDFLAGS = -Bgcctestdir/ +constructor_static_test_SOURCES = constructor_test.cc +constructor_static_test_DEPENDENCIES = gcctestdir/ld +constructor_static_test_LDFLAGS = -Bgcctestdir/ -static + endif endif diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index 5cdd95934a9..887681e11c8 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -46,6 +46,10 @@ check_PROGRAMS = object_unittest$(EXEEXT) $(am__EXEEXT_1) @GCC_FALSE@constructor_test_DEPENDENCIES = libgoldtest.a ../libgold.a @NATIVE_LINKER_FALSE@constructor_test_DEPENDENCIES = libgoldtest.a \ @NATIVE_LINKER_FALSE@ ../libgold.a +@GCC_FALSE@constructor_static_test_DEPENDENCIES = libgoldtest.a \ +@GCC_FALSE@ ../libgold.a +@NATIVE_LINKER_FALSE@constructor_static_test_DEPENDENCIES = \ +@NATIVE_LINKER_FALSE@ libgoldtest.a ../libgold.a subdir = testsuite DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 @@ -68,7 +72,14 @@ am_libgoldtest_a_OBJECTS = test.$(OBJEXT) testmain.$(OBJEXT) \ testfile.$(OBJEXT) libgoldtest_a_OBJECTS = $(am_libgoldtest_a_OBJECTS) @GCC_TRUE@@NATIVE_LINKER_TRUE@am__EXEEXT_1 = \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test$(EXEEXT) +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test$(EXEEXT) \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_static_test$(EXEEXT) +am__constructor_static_test_SOURCES_DIST = constructor_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@am_constructor_static_test_OBJECTS = \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test.$(OBJEXT) +constructor_static_test_OBJECTS = \ + $(am_constructor_static_test_OBJECTS) +constructor_static_test_LDADD = $(LDADD) am__constructor_test_SOURCES_DIST = constructor_test.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@am_constructor_test_OBJECTS = \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test.$(OBJEXT) @@ -86,9 +97,10 @@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ -SOURCES = $(libgoldtest_a_SOURCES) $(constructor_test_SOURCES) \ - $(object_unittest_SOURCES) +SOURCES = $(libgoldtest_a_SOURCES) $(constructor_static_test_SOURCES) \ + $(constructor_test_SOURCES) $(object_unittest_SOURCES) DIST_SOURCES = $(libgoldtest_a_SOURCES) \ + $(am__constructor_static_test_SOURCES_DIST) \ $(am__constructor_test_SOURCES_DIST) \ $(object_unittest_SOURCES) ETAGS = etags @@ -226,10 +238,12 @@ INCLUDES = -D_GNU_SOURCE \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_pic_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_static_test \ @GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_static_pic_test \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_static_test @GCC_TRUE@@NATIVE_LINKER_TRUE@NATIVE_PROGS = \ -@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_test \ +@GCC_TRUE@@NATIVE_LINKER_TRUE@ constructor_static_test TESTS = object_unittest $(NATIVE_TESTING) check_LIBRARIES = libgoldtest.a @@ -239,6 +253,9 @@ object_unittest_SOURCES = object_unittest.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_test_SOURCES = constructor_test.cc @GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_test_DEPENDENCIES = gcctestdir/ld @GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_test_LDFLAGS = -Bgcctestdir/ +@GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_static_test_SOURCES = constructor_test.cc +@GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_static_test_DEPENDENCIES = gcctestdir/ld +@GCC_TRUE@@NATIVE_LINKER_TRUE@constructor_static_test_LDFLAGS = -Bgcctestdir/ -static all: all-am .SUFFIXES: @@ -282,6 +299,9 @@ libgoldtest.a: $(libgoldtest_a_OBJECTS) $(libgoldtest_a_DEPENDENCIES) clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +constructor_static_test$(EXEEXT): $(constructor_static_test_OBJECTS) $(constructor_static_test_DEPENDENCIES) + @rm -f constructor_static_test$(EXEEXT) + $(CXXLINK) $(constructor_static_test_LDFLAGS) $(constructor_static_test_OBJECTS) $(constructor_static_test_LDADD) $(LIBS) constructor_test$(EXEEXT): $(constructor_test_OBJECTS) $(constructor_test_DEPENDENCIES) @rm -f constructor_test$(EXEEXT) $(CXXLINK) $(constructor_test_LDFLAGS) $(constructor_test_OBJECTS) $(constructor_test_LDADD) $(LIBS)