Преглед на файлове

[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
 # If no architecture is specified in Config or on the command-line,
71
 # If no architecture is specified in Config or on the command-line,
72
 # use that of the build machine.
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
 # handle x86_64 like i386, but set -m32 option for 32bit code only
76
 # handle x86_64 like i386, but set -m32 option for 32bit code only
77
 ifeq ($(ARCH),x86_64)
77
 ifeq ($(ARCH),x86_64)

Loading…
Отказ
Запис