Parcourir la source

[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 il y a 15 ans
Parent
révision
e899f100ca
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/Makefile

+ 1
- 1
src/Makefile Voir le fichier

@@ -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)

Chargement…
Annuler
Enregistrer