Bo Peng wrote:
On 6/16/06, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
Hello Bo,

I had to apply this patch to get libiconv recognized by scons/msvc. The
problem is that the GnuWin32 package provide libiconv.lib and not
iconv.lib. I did not commit the patch because I guess this change would
break scons/mingw.

Abdel.



Index: SConstruct
===================================================================
--- SConstruct  (revision 14125)
+++ SConstruct  (working copy)
@@ -958,7 +958,7 @@
   # HAVE_LIBAIKSAURUS
   libs = [
     ('gdi32', 'HAVE_LIBGDI32'),
-    ('iconv', 'HAVE_ICONV'),
+    ('libiconv', 'HAVE_ICONV'),
     ('c', 'HAVE_LIBC'),
     ('Aiksaurus', 'HAVE_LIBAIKSAURUS'),
   ]

msvc does not use that lib prefix, and mingw generated lib has that
thing. Is this the problem?

I will see how to make mingw happy about this.

Wait, there is another change needed because of this:

LINK : fatal error LNK1181: cannot open input file 'iconv.lib'
scons: *** [msvc\qt4\lyx.exe] Error 1181
scons: building terminated because of errors.

Abdel.

Index: SConstruct
===================================================================
--- SConstruct  (revision 14125)
+++ SConstruct  (working copy)
@@ -958,7 +958,7 @@
   # HAVE_LIBAIKSAURUS
   libs = [
     ('gdi32', 'HAVE_LIBGDI32'),
-    ('iconv', 'HAVE_ICONV'),
+    ('libiconv', 'HAVE_ICONV'),
     ('c', 'HAVE_LIBC'),
     ('Aiksaurus', 'HAVE_LIBAIKSAURUS'),
   ]
@@ -1191,7 +1191,7 @@
   env['SYSTEM_LIBS'] = ['z']
 
 libs = [
-  ('HAVE_ICONV', 'iconv'),
+  ('HAVE_ICONV', 'libiconv'),
   ('HAVE_LIBGDI32', 'gdi32'),
   ('HAVE_LIBAIKSAURUS', 'Aiksaurus'),
   ('USE_ASPELL', 'aspell'),

Reply via email to