[OE-core] [CONSOLIDATED PULL 04/28] ncurses: move libraries to base_libdir
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Mon Jan 9 12:10:28 UTC 2012
Scott Garman <scott.a.garman-ral2JQCrhuEAvxtiuMwx3w at public.gmane.org>
writes:
>>> - f=${D}${libdir}/$i.so
>>> + f=${D}${base_libdir}/$i.so
>>
>> this breaks builds because 'ld' does not search ${base_libdir}:
>>
>> | gcc -shared ... -ltermcap
>> | /usr/bin/ld: cannot find -ltermcap
>> | ERROR: Task 216 (virtual:native:.../readline/readline_6.2.bb, do_install) failed with exit code '1'
>> | ERROR: 'virtual:native:.../readline/readline_6.2.bb' failed
>
> Which is why I added:
>
> # tic from the -native build cannot run without setting this explicitly
> BUILD_LDFLAGS_virtclass-native += "-Wl,-rpath,${base_libdir}"
>
> to ncurses.inc
>
> Is this not working?
no; error happens when building 'readline-native' (which does not read
ncurses.inc). Build of 'ncurses(-native)' succeeded.
> I build-tested this with our -minimal and -sato images, and readline
> is built as a part of this. Not sure how I could have missed this,
> unless some host contamination was creeping in.
probably, the ncurses development files were installed on the host and
'-ltermcap' linked against them and not against the oe ones..
Enrico
More information about the Openembedded-core
mailing list