* ltmain.in: Add -pthread like flags when linking executables too.
Reported by Andreas Schwab <schwab@suse.de>
diff --git a/ChangeLog b/ChangeLog
index 9505a6b..62f8d7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-07  Peter O'Gorman  <peter@pogma.com>
+
+	* ltmain.in: Add -pthread like flags when linking executables too.
+	Reported by Andreas Schwab <schwab@suse.de>
+
 2005-02-05  Peter O'Gorman  <peter@pogma.com>
 
 	* configure.ac: Bump version to 1.5.13a
diff --git a/ltmain.in b/ltmain.in
index 71fd580..3e8cf36 100644
--- a/ltmain.in
+++ b/ltmain.in
@@ -1525,6 +1525,8 @@
 
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 	compiler_flags="$compiler_flags $arg"
+	compile_command="$compile_command $arg"
+	finalize_command="$finalize_command $arg"
 	continue
 	;;