Merge pull request #116662 from AndersonTorres/new-xa

Fix typos in xa and dxa
This commit is contained in:
Anderson Torres 2021-03-17 21:48:44 -03:00 committed by GitHub
commit 3a71e9c256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -18,9 +18,8 @@ stdenv.mkDerivation rec {
dontConfigure = true; dontConfigure = true;
postPatch = '' postPatch = ''
substituteInPlace \ substituteInPlace Makefile \
--replace "CC = gcc" "CC = cc' \ --replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc"
Makefile
''; '';
installPhase = '' installPhase = ''

View File

@ -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"}" ];