Linux: Patch incorrect absolute paths in makefiles.
svn path=/nixpkgs/trunk/; revision=21623
This commit is contained in:
parent
e7a10e7142
commit
074f450ab3
@ -6,6 +6,15 @@ if [ -n "$crossConfig" ]; then
|
|||||||
makeFlags="$makeFlags CROSS_COMPILE=$crossConfig-"
|
makeFlags="$makeFlags CROSS_COMPILE=$crossConfig-"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
postPatch() {
|
||||||
|
# Makefiles are full of /bin/pwd, /bin/false, /bin/bash, etc.
|
||||||
|
# Patch these away, assuming the tools are in $PATH.
|
||||||
|
for mf in $(find -name Makefile); do
|
||||||
|
echo "stripping FHS paths in \`$mf'..."
|
||||||
|
sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g'
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
configurePhase() {
|
configurePhase() {
|
||||||
if test -n "$preConfigure"; then
|
if test -n "$preConfigure"; then
|
||||||
eval "$preConfigure";
|
eval "$preConfigure";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user