Skip to content
David Grayson edited this page Jan 27, 2023 · 3 revisions

== Logging all calls to pkg-config-cross ==

Add this near the top of a builder script:

mkdir $out bin
export PATH=$PWD/bin:$PATH
cat > bin/pkg-config-cross <<EOF
#!/usr/bin/env bash
exec 6>>\$out/pkg-config-cross.log
echo == 1>&6
echo pkg-config-cross \$@ 1>&6
$(which pkg-config-cross) \$@ | tee -a /dev/fd/6
EOF
chmod a+x bin/*
Clone this wiki locally