cpp.req: fix double buildroot in filename-specific -I options

This commit is contained in:
Alexey Tourbin 2012-02-19 19:09:55 +04:00
parent d7b8e36a16
commit 53661a9938

View File

@ -60,8 +60,10 @@ GlobalPkgInit()
Cflags() Cflags()
{ {
local f="$1"; shift local d="${1:?}"
set -- $pkgconfig_cflags -I/usr/include -I${f%/*} -I${f%/*/*} -I${f%/*/*/*} d=${d#${RPM_BUILD_ROOT-}}
d=${d%/*}
set -- $pkgconfig_cflags -I/usr/include -I$d -I${d%/*} -I${d%/*/*}
local cf local cf
for cf; do for cf; do
case $cf in case $cf in