I'm currently using the attached patch to build both 32 and 64 bit
shared libgcc DLLs. I'm still dropping them into /usr/bin for the time
being. I rename them both after installation to avoid the name clash.

The thread-safety situation has changed. The current upstream release of
mingwrt has a new libmingwthrd that does not result in a run-time
dependency on mingwm10.dll. However, you still have to compile/link with
'-mthreads' in order to get -lmingwthrd into the linker command line.

-- 
Sam Morris <s...@robots.org.uk>
diff -Nru gcc-mingw32-4.4.4/debian/dirs gcc-mingw32-4.4.4/debian/dirs
--- gcc-mingw32-4.4.4/debian/dirs	1970-01-01 01:00:00.000000000 +0100
+++ gcc-mingw32-4.4.4/debian/dirs	2010-06-02 11:19:16.000000000 +0100
@@ -0,0 +1 @@
+usr/bin
diff -Nru gcc-mingw32-4.4.4/debian/rules gcc-mingw32-4.4.4/debian/rules
--- gcc-mingw32-4.4.4/debian/rules	2010-05-10 19:45:21.000000000 +0100
+++ gcc-mingw32-4.4.4/debian/rules	2010-06-02 11:18:42.000000000 +0100
@@ -29,7 +29,6 @@
 	--enable-threads \
 	--enable-sjlj-exceptions \
 	--enable-version-specific-runtime-libs \
-	--disable-shared \
 	$(NULL)
 
 
@@ -60,7 +59,9 @@
 
 stamps/install: stamps/build-mingw32 stamps/build-mingw64
 	$(MAKE) -C build-tree/gcc-mingw32 install DESTDIR=$(CURDIR)/debian/$(package)/
+	rename 's/libgcc/lib32gcc/' debian/$(package)/usr/bin/libgcc*
 	$(MAKE) -C build-tree/gcc-mingw64 install$(BOOTSTRAP_SUFFIX) DESTDIR=$(CURDIR)/debian/$(package)/
+	rename 's/libgcc/lib64gcc/' debian/$(package)/usr/bin/libgcc*
 
 	# remove all documentation (already in gcc-doc)
 	rm -rf debian/$(package)/usr/share/{man/man7,man/man1,info}

Reply via email to