slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Need to pass explicit LDFLAGS to link iconv on MacOS


Hi,

I used to configure my build of svn HEAD with the following
params (MacOS 10.4.9):

FINKPREFIX=/sw \
./configure --prefix=/usr/local \
--with-pcre=/sw --with-png=/sw --with-iconv=/sw

Contrary to the pcre module which was linked in nicely I got for
iconv:

~$ slsh
slsh version 0.8.1-0; S-Lang version: pre2.1.1-9
Copyright (C) 2005-2007 John E. Davis <jed@xxxxxxxxxxx>
This is free software with ABSOLUTELY NO WARRANTY.

slsh> import ("iconv");
Error linking to /usr/local/lib/slang/v2/modules/iconv-module.so: dlopen(/usr/local/lib/slang/v2/modules/iconv-module.so, 10): Symbol not found: _libiconv
  Referenced from: /usr/local/lib/slang/v2/modules/iconv-module.so
  Expected in: flat namespace
Traceback: import
<stdin>:1:<top-level>:Import Error
slsh>

Jusf found out I can avoid this by doing:

FINKPREFIX=/sw LDFLAGS="-liconv LDFLAGS" \
./configure --prefix=/usr/local \
--with-pcre=/sw --with-png=/sw --with-iconv=/sw

I'm no good at this, but the --with-iconv flag doesn't seem to
have the desired effect here.

c
-- 
Make Slrn newsreader read MIME (Python required):
<http://www.blacktrash.org/hg/SlrnMime/>



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]