Skip to content

Commit 078a3e7

Browse files
committed
strip lib-prefix and .a-suffix from library dependencies in the generated pkg-config file
1 parent 481c33e commit 078a3e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Jamfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,9 @@ rule generate-pkg-config ( properties * )
11061106
}
11071107
else if ( [ $(t).type ] = STATIC_LIB )
11081108
{
1109-
private_deps += [ $(t).name ] ;
1109+
local stripped = [ MATCH "^lib(.*)\\.a$" : [ $(t).name ] ] ;
1110+
stripped ?= [ $(t).name ] ;
1111+
private_deps += $(stripped) ;
11101112
}
11111113
}
11121114
}

0 commit comments

Comments
 (0)