瀏覽代碼

[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 15 年之前
父節點
當前提交
e899f100ca
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/Makefile

+ 1
- 1
src/Makefile 查看文件

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

Loading…
取消
儲存