tinycc: generate a pkgconfig file for libtcc
This commit is contained in:
parent
8b1000432b
commit
f73f525b72
@ -32,6 +32,17 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlagsArray+=("--libpaths=${getLib stdenv.cc.libc}/lib")
|
configureFlagsArray+=("--libpaths=${getLib stdenv.cc.libc}/lib")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
cat >libtcc.pc <<EOF
|
||||||
|
Name: libtcc
|
||||||
|
Description: Tiny C compiler backend
|
||||||
|
Version: ${version}
|
||||||
|
Libs: -L$out/lib -Wl,--rpath $out/lib -ltcc -ldl
|
||||||
|
Cflags: -I$out/include
|
||||||
|
EOF
|
||||||
|
install -Dt $out/lib/pkgconfig libtcc.pc
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user