[glom] Do not use .pyd extension on non-Windows systems



commit 3cd3e99597e2ef096078bf204e004711d3284ec0
Author: Daniel Elstner <danielk openismus com>
Date:   Fri Aug 21 15:59:48 2009 +0200

    Do not use .pyd extension on non-Windows systems
    
    * Makefile.am (pymod_ldflags): Set variable conditionally and use
    the "-shrext .pyd" option only on Windows hosts.

 ChangeLog   |    7 +++++++
 Makefile.am |    6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 161bebe..f1cafa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-21  Daniel Elstner  <danielk openismus com>
+
+	Do not use .pyd extension on non-Windows systems
+
+	* Makefile.am (pymod_ldflags): Set variable conditionally and use
+	the "-shrext .pyd" option only on Windows hosts.
+
 2009-08-21  Michael Hasselmann  <michaelh openismus com>
 
 	* glom/libglom/connectionpool_backends/sqlite.cc: Fix typos to fix the build.
diff --git a/Makefile.am b/Makefile.am
index 31656f6..bdaba16 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,9 +70,11 @@ glom_python_embed_python_module_glom_1_12_la_LIBADD = \
 	glom/libglom/libglom-$(GLOM_ABI_VERSION).la \
 	$(LIBGLOM_LIBS) $(PYTHON_LIBS)
 
-# TODO: Verify that -shrext really does the trick on Windows, or if the
-# install-exec-hook rule needs to be resurrected to rename the .dll file.
+if HOST_WIN32
 pymod_ldflags = -module -avoid-version -no-undefined -shrext .pyd
+else
+pymod_ldflags = -module -avoid-version -no-undefined
+endif
 glom_pyexport = -export-symbols-regex '^_*initglom'
 glom_python_embed_python_module_glom_1_12_la_LDFLAGS = $(pymod_ldflags) $(glom_pyexport)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]