You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
465 B
25 lines
465 B
4 months ago
|
#!/bin/bash
|
||
|
#
|
||
|
# A preprocessor for linker arguments, which replaces references to .pc
|
||
|
# files by results of the proper calls to pkg-config.
|
||
|
#
|
||
|
# (c) 2007 Martin Mares <mj@ucw.cz>, placed under GNU LGPL
|
||
|
#
|
||
|
|
||
|
set -e
|
||
|
|
||
|
PC=
|
||
|
while [ -n "$1" ] ; do
|
||
|
case "$1" in
|
||
|
*.pc) PC="$PC `basename $1 .pc`"
|
||
|
;;
|
||
|
*) echo -n " $1"
|
||
|
;;
|
||
|
esac
|
||
|
shift
|
||
|
done
|
||
|
if [ -n "$PC" ] ; then
|
||
|
echo -n " "
|
||
|
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:obj/pkgconfig" pkg-config $PKG_CONFIG_OPTS --libs $PC
|
||
|
fi
|