aspell-devel
[Top][All Lists]
Advanced

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

[aspell-devel] [PATCH] Build aspell-0.60.5 under latest cygwin with shar


From: Dr. Volker Zell
Subject: [aspell-devel] [PATCH] Build aspell-0.60.5 under latest cygwin with shared library support
Date: Tue, 18 Dec 2007 17:27:18 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (cygwin32)

Hi

I'm the new aspell maintainer for cygwin.

Following a patch for aspell-0.60.5 to build under latest cygwin with
shared library support:

diff -urN origsrc/aspell-0.60.5/Makefile.am src/aspell-0.60.5/Makefile.am
--- origsrc/aspell-0.60.5/Makefile.am   2006-12-11 04:36:41.000000000 +0100
+++ src/aspell-0.60.5/Makefile.am       2007-12-18 12:34:02.247588800 +0100
@@ -194,7 +194,7 @@
 else # not COMPILE_IN_FILTERS
 
 dynamic_optfiles += ${optfiles}
-filter_ldflags = -module -avoid-version
+filter_ldflags = -module -avoid-version -no-undefined
 
 ### Add name of filter library containing your filter. Name always
 ### must look like lib<filtername>-filter.la see development manual
@@ -203,27 +203,27 @@
                      nroff-filter.la texinfo-filter.la
 
 email_filter_la_SOURCES = modules/filter/email.cpp
-email_filter_la_LIBADD = libaspell.la 
+email_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 email_filter_la_LDFLAGS  = ${filter_ldflags}
 
 tex_filter_la_SOURCES = modules/filter/tex.cpp
-tex_filter_la_LIBADD = libaspell.la
+tex_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 tex_filter_la_LDFLAGS  = ${filter_ldflags}
 
 sgml_filter_la_SOURCES  = modules/filter/sgml.cpp
-sgml_filter_la_LIBADD = libaspell.la
+sgml_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 sgml_filter_la_LDFLAGS  = ${filter_ldflags}
 
 context_filter_la_SOURCES  = modules/filter/context.cpp
-context_filter_la_LIBADD = libaspell.la
+context_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 context_filter_la_LDFLAGS  = ${filter_ldflags}
 
 nroff_filter_la_SOURCES  = modules/filter/nroff.cpp
-nroff_filter_la_LIBADD = libaspell.la
+nroff_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 nroff_filter_la_LDFLAGS  = ${filter_ldflags}
 
 texinfo_filter_la_SOURCES  = modules/filter/texinfo.cpp
-texinfo_filter_la_LIBADD = libaspell.la
+texinfo_filter_la_LIBADD = libaspell.la $(LTLIBINTL)
 texinfo_filter_la_LDFLAGS  = ${filter_ldflags}
 
 ### Before this line add the corresponding <yourfilterlibrary>_SOURCES and
diff -urN origsrc/aspell-0.60.5/lib/new_filter.cpp 
src/aspell-0.60.5/lib/new_filter.cpp
--- origsrc/aspell-0.60.5/lib/new_filter.cpp    2005-06-20 02:15:15.000000000 
+0200
+++ src/aspell-0.60.5/lib/new_filter.cpp        2007-12-18 12:34:02.277632000 
+0100
@@ -458,11 +458,19 @@
       module->file.assign(option_file.str(), slash + 1 - option_file.str());
       //module->file += "lib";
       module->file += filter_name;
+#ifdef __CYGWIN__
+      module->file += "-filter.dll";
+#else
       module->file += "-filter.so";
+#endif
     } else {
       if (module->file[0] != '/')
         module->file.insert(0, option_file.str(), slash + 1 - 
option_file.str());
+#ifdef __CYGWIN__
+      module->file += ".dll";
+#else
       module->file += ".so";
+#endif
     }
 
     return module.release();


Ciao
  Volker




reply via email to

[Prev in Thread] Current Thread [Next in Thread]