Here is the solution. Building 'pkgconfig' stage 0, "generic embedded"
target (I left pkg selection unchanged). As there is no 'glib' in the
pkg-list, this is the solution, in
package/base/pkgconfig/pkgconfig.conf:

if atstage toolchain; then
        # no pkg-config itself, so it needs to pick it up the old way
        export GLIB_CFLAGS="-I$root/include/glib-2.0 
-I$root$libdir/glib-2.0/include"
        export GLIB_LIBS="-L$root$libdir -Wl,-rpath,$root$libdir -lglib-2.0"
        # BK
        var_append confopt ' ' "--with-internal-glib"
else
        hook_add postmake 5 "cp $confdir/profile_d_pkgconfig.sh
$root/etc/profile.d/pkgconfig"
fi

If you want to implement this fix upstream, probably best to do a test
for glib pkg.

pkgconfig now compiles ok.


On 9/9/18, Barry Kauler <[email protected]> wrote:
> Oh, I know why the failure. "generic embedded" does not have 'glib' in
> the pkg list.
>
>
> On 9/9/18, Barry Kauler <[email protected]> wrote:
>> Stuck at this one. pkconfig at stage 0 fails, "generic embedded" build
>> with uclibc.
>>
>>  pkg.h:23:18: fatal error: glib.h: No such file or directory
>>   #include <glib.h>
>>
>> pkgconfig.conf has this:
>>
>> if atstage toolchain; then
>>      # no pkg-config itself, so it needs to pick it up the old way
>>      export GLIB_CFLAGS="-I$root/include/glib-2.0
>> -I$root$libdir/glib-2.0/include"
>>      export GLIB_LIBS="-L$root$libdir -Wl,-rpath,$root$libdir -lglib-2.0"
>> else
>>      hook_add postmake 5 "cp $confdir/profile_d_pkgconfig.sh
>> $root/etc/profile.d/pkgconfig"
>> fi
>>
>> ...the "-I$root/include/glib-2.0" is not getting picked up in this uclibc
>> build.
>>
>> Do you know what I need to do to fix 'pkgconfig.conf'?
>>
>



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to