From 616d50b39de201c3801049808165b599742c5559 Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Tue, 13 Sep 2005 09:02:18 +0000
Subject: [PATCH] ($(outdir)/%$(SHARED_MODULE_SUFFIX)): SHARED_FLAGS at the
 end.

---
 ChangeLog                                  | 3 +++
 python/midi.c                              | 1 +
 stepmake/stepmake/python-module-rules.make | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ea6e06663c..8c18998397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-09-13  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+	* stepmake/stepmake/python-module-rules.make
+	($(outdir)/%$(SHARED_MODULE_SUFFIX)): SHARED_FLAGS at the end.  
+
 	* lily/*.cc: remove <cmath> everywhere. <cmath> is included from real.hh
 
 2005-09-12  Han-Wen Nienhuys  <hanwen@xs4all.nl>
diff --git a/python/midi.c b/python/midi.c
index 168e9f7749..0f2c5c931c 100644
--- a/python/midi.c
+++ b/python/midi.c
@@ -412,3 +412,4 @@ initmidi ()
   Midi_warning = PyString_FromString ("midi.warning");
   PyDict_SetItemString (d, "warning", Midi_warning);
 }
+ 
diff --git a/stepmake/stepmake/python-module-rules.make b/stepmake/stepmake/python-module-rules.make
index 8f37c41530..da5575f712 100644
--- a/stepmake/stepmake/python-module-rules.make
+++ b/stepmake/stepmake/python-module-rules.make
@@ -1,6 +1,6 @@
 
 $(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.lo
-	$(LD) $(SHARED_FLAGS) -o $@ $< $(ALL_LDFLAGS)
+	$(LD) -o $@ $< $(SHARED_FLAGS) $(ALL_LDFLAGS)
 
 $(outdir)/%.pyc: $(outdir)/%.py
 	$(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
-- 
2.39.5