Re: [PATCH] build-sys: use pkg-config to find the libs for static build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 11 December 2007, Stepan Kasal wrote:
> +dnl UTIL_PKG_STATIC(VARIABLE, MODULES)
> +dnl ----------------------------------
> +AC_DEFUN([UTIL_PKG_STATIC], [
> +  if AC_RUN_LOG([pkg-config --exists --print-errors "$2"]); then
> +    $1=`pkg-config --libs --static "$2"`

executing `pkg-config` is not friendly to cross-setups.  you should use 
AC_PATH_TOOL to setup the PKG_CONFIG environment variable and then use that 
later on

>  # These default values should work in most cases:
>  : ${BLKID_LIBS='-lblkid'}
>  : ${VOLUMEID_LIBS='-lvolume_id'}

why only go half way ?  i'd use pkg-config for everything.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux