[Clfs-support] Cross-Compile Tools -- ncurses cannot find -ldl

Joe Ciccone jciccone at gmail.com
Sun Aug 9 09:56:39 PDT 2009


Roy Bekken wrote:
> On Sun, Aug 9, 2009 at 6:34 PM, Joe Ciccone<jciccone at gmail.com> wrote:
>   
>> Could you please run this test and send the results?
>>
>> echo "int main() {}" | gcc -ldl -x c - -v -Wl,-verbose
>> _______________________________________________
>> Clfs-support mailing list
>> Clfs-support at lists.cross-lfs.org
>> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>>
>>     
>
> I tried the command in both the clfs build environment as as my normal
> user, output was identical.
>   
The output you provided looks good, it compiled successfully.

Lets try this,

cd /mnt/clfs/tools/build/ncurses-5.7/ncurses
gcc ../objects/tic.o ../objects/dump_entry.o -s -I../progs -I.
-DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG
-I/cross-tools/include/ncurses -O2 --param max-inline-insns-single=1200
-static -L../lib -lncurses -L../lib -lncurses -dynamic -ldl -o tic -v
-Wl,--verbose



More information about the Clfs-support mailing list