Przeglądaj źródła

[makefile] Quote argument to sed containing []

[] are shell metacharacters, and they can get confused by files in the
local directory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
tags/v0.9.5
H. Peter Anvin 16 lat temu
rodzic
commit
e899f100ca
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/Makefile

+ 1
- 1
src/Makefile Wyświetl plik

@@ -71,7 +71,7 @@ noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk $(BIN)/gpxe.iso $(BIN)/gpxe.usb $(BIN)/
71 71
 # If no architecture is specified in Config or on the command-line,
72 72
 # use that of the build machine.
73 73
 #
74
-ARCH		:= $(shell uname -m | sed -e s,i[3456789]86,i386,)
74
+ARCH		:= $(shell uname -m | sed -e 's,i[3456789]86,i386,')
75 75
 
76 76
 # handle x86_64 like i386, but set -m32 option for 32bit code only
77 77
 ifeq ($(ARCH),x86_64)

Ładowanie…
Anuluj
Zapisz