Hi, [email protected]

   > +AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for
shared objects])

   > #define MODULE_EXTENSION SHARED_LIB_SUFFIX

Sorry, I had completely forgotten it (better solution in your previous
post).



Pavel Lipenský wrote:
Hi, E-devel

and what about

+AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared 
objects])

and then

#define MODULE_EXTENSION SHARED_LIB_SUFFIX

AFAIK this was commonly used by several E17-050 components and it was working 
very well on Cygwing 1.5.

Regards
Pavel

------------ Původní zpráva ------------
Od: Lars Munch <[email protected]>
Předmět: Re: [E-devel] [PATCH] eina patch for cygwin-1.7
Datum: 18.6.2009 06:07:26
----------------------------------------
On Wed, Jun 17, 2009 at 06:11:43PM +0200, Vincent Torri wrote:

On Thu, 18 Jun 2009, [email protected] wrote:

Hi, E-devel


Sorry, my previous eina patch (for cygwin-1.7) was incomplete.
what ? cygwin does not define _WIN32 ????
No, since Cygwin is a unix emulation environment you have to
explicetely compile with -mwin32 if you want _WIN32 defined and you
don't want that unless you really have to. So the patch is good.

In svn, thanks.

Lars Munch












Index: src/lib/eina_module.c
===================================================================
--- src/lib/eina_module.c       (revision 41102)
+++ src/lib/eina_module.c       (working copy)
@@ -66,11 +66,7 @@
  * @cond LOCAL
  */
 
-#if defined(_WIN32) || defined(__CYGWIN__)
-# define MODULE_EXTENSION ".dll"
-#else
-# define MODULE_EXTENSION ".so"
-#endif /* !defined(_WIN32) && !defined(__CYGWIN__) */
+#define MODULE_EXTENSION SHARED_LIB_SUFFIX
 
 #define EINA_MODULE_SYMBOL_INIT "__eina_module_init"
 #define EINA_MODULE_SYMBOL_SHUTDOWN "__eina_module_shutdown"
Index: configure.ac
===================================================================
--- configure.ac        (revision 41102)
+++ configure.ac        (working copy)
@@ -382,6 +382,9 @@
 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], 
[enable_coverage="no"])
 EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"])
 
+# Checks for shared library suffix
+AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared 
objects])
+
 AC_CONFIG_FILES([
 Makefile
 eina-0.pc






------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to