Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2012-03-03 20:14:02 +0400
committerZoltan Varga <vargaz@gmail.com>2012-03-03 20:16:41 +0400
commit6c0c226bed97ccca1cae86c4c8504dcf737c210e (patch)
treeb5a6395b3c9a05a8079121297980e26a219fbaa6 /libgc/Makefile.am
parent48d2444470446e768041e690029035e54e0de7e0 (diff)
Revert "Get rid of the <foo>-static libraries, libtool doesn't know that they need to be compiled only in static mode, so each source file was compiled up to 8 times. Pass -static in the _LDFLAGS for the mono executables instead."
This reverts commit 8e386cce7f723f16624b49b3074b09e3e34da39d. The libtool convenience libraries only contain the PIC versions of object files, causing fast tls support to fail.
Diffstat (limited to 'libgc/Makefile.am')
-rw-r--r--libgc/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/libgc/Makefile.am b/libgc/Makefile.am
index 4de6cbcba50..e8a0fd5cb3d 100644
--- a/libgc/Makefile.am
+++ b/libgc/Makefile.am
@@ -24,7 +24,12 @@ SUBDIRS = m4 include doc
INCLUDES = -I$(top_builddir)/.. -I$(top_srcdir)/..
-noinst_LTLIBRARIES = libmonogc.la
+#
+# libtool is not capable of creating shared/static versions of a convenience
+# library, so we have to do it ourselves
+#
+
+noinst_LTLIBRARIES = libmonogc.la libmonogc-static.la
EXTRA_DIST =
## more items will be succesively added below
@@ -57,6 +62,10 @@ EXTRA_libmonogc_la_SOURCES = alpha_mach_dep.S \
rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
+libmonogc_static_la_SOURCES = $(libmonogc_la_SOURCES)
+libmonogc_static_la_LIBADD = $(libmonogc_la_LIBADD)
+libmonogc_static_la_LDFLAGS = -static
+
EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.s sparc_mach_dep.S
AM_CFLAGS = @GC_CFLAGS@