Without patching, the pc file installs unaltered (@VARIABLE@ in place of
proper values). I changed the values to what I thought they should be
on the fly. This is different than what I have from the 1.2.8 version.
I assumed the patch was not needed as the pngtest compile line
contained -lz and -lm in the build log (I think it was pngtest, I
ditched the log once all was well :-/). Anyway, this works since we
have to modify it, and is consistant with libpng-config's result, but
would the patch be the better option?
----------------------------------------------------------
[EMAIL PROTECTED] ~]# cat /media/lfs/usr/lib/pkgconfig/libpng12.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exex_prefix}/include
Name: libpng
Description: Loads and saves PNG files
Version: 1.2.10
Libs: -L${libdir} -lpng12 -lz -lm
Cflags: -I${includedir}/libpng12
----------------------------------------------------------
[EMAIL PROTECTED] ~]# cat /usr/lib/pkgconfig/libpng12.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
Name: libpng12
Description: Loads and saves PNG files
Version: 1.2.8
Libs: -L${libdir} -lpng12
Cflags: -I${includedir}/libpng12
----------------------------------------------------------
I couldn't get some xorg apps package to build against it unless I added
-lz. -lm was just a guess and a precaution as that was what was fixed
in the previous version's link_to_proper_libs patch. Also note that the
libpng-config program *is* modified correctly durring the installation.
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page