strip lib-prefix and .a-suffix from library dependencies in the generated pkg-config file

This commit is contained in:
Arvid Norberg
2026-03-12 23:10:34 +01:00
committed by Arvid Norberg
parent 481c33e9d8
commit 078a3e7223
+3 -1
View File
@@ -1106,7 +1106,9 @@ rule generate-pkg-config ( properties * )
}
else if ( [ $(t).type ] = STATIC_LIB )
{
private_deps += [ $(t).name ] ;
local stripped = [ MATCH "^lib(.*)\\.a$" : [ $(t).name ] ] ;
stripped ?= [ $(t).name ] ;
private_deps += $(stripped) ;
}
}
}