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()
|
||||
{
|
||||
local f="$1"; shift
|
||||
set -- $pkgconfig_cflags -I/usr/include -I${f%/*} -I${f%/*/*} -I${f%/*/*/*}
|
||||
local d="${1:?}"
|
||||
d=${d#${RPM_BUILD_ROOT-}}
|
||||
d=${d%/*}
|
||||
set -- $pkgconfig_cflags -I/usr/include -I$d -I${d%/*} -I${d%/*/*}
|
||||
local cf
|
||||
for cf; do
|
||||
case $cf in
|
||||
|
Loading…
Reference in New Issue
Block a user