cpp.req: fix double buildroot in filename-specific -I options
This commit is contained in:
parent
d7b8e36a16
commit
53661a9938
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user