xa: fix a typo in substituteInPlace
Also, move the file argument
This commit is contained in:
parent
0408ccf4ff
commit
6603130e7e
@ -15,13 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substitueInPlace \
|
substituteInPlace Makefile \
|
||||||
--replace "DESTDIR" "PREFIX" \
|
--replace "DESTDIR" "PREFIX" \
|
||||||
--replace "CC = gcc" "CC = cc" \
|
--replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc" \
|
||||||
--replace "LDD = gcc" "LDD = ld" \
|
--replace "LDD = gcc" "LDD = ${stdenv.cc.targetPrefix}cc" \
|
||||||
--replace "CFLAGS = -O2" "CFLAGS ?=" \
|
--replace "CFLAGS = -O2" "CFLAGS ?=" \
|
||||||
--replace "LDFLAGS = -lc" "LDFLAGS ?= -lc" \
|
--replace "LDFLAGS = -lc" "LDFLAGS ?= -lc"
|
||||||
Makefile
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user