[Clfs-dev] pkg-config multiarch_wrapper and script

DJ Lucas dj at linuxfromscratch.org
Mon Sep 5 00:07:31 PDT 2011


Any reason why multiarch_wrapper isn't used for pkg-config? Ex:

mv -v /usr/bin/pkg-config{,.bin}
cat > /usr/bin/pkg-config-32 << "EOF"
#!/bin/sh
# Begin /usr/bin/pkg-config-32

PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" /usr/bin/pkg-config.bin $@

# End /usr/bin/pkg-config-32
EOF
sed 's/32/64/g' /usr/bin/pkg-config-32 > /usr/bin/pkg-config-64
chmod 755 /usr/bin/pkg-config-{32,64}
ln -s multiarch_wrapper /usr/bin/pkg-config

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.




More information about the Clfs-dev mailing list