diff --git a/libm/Makefile b/libm/Makefile index 275030d2..35d4d0df 100644 --- a/libm/Makefile +++ b/libm/Makefile @@ -7,11 +7,11 @@ OPTLEVEL?=$(DEFAULT_OPTLEVEL) CFLAGS?=$(OPTLEVEL) # TODO: Better detection of the proper subdirectory here! -ifneq ($(shell echo $(HOST) | grep -E ^i[012346789]*86-),) +ifneq ($(shell echo $(HOST) | grep -E '^i[012346789]*86-'),) ARCH_SUBDIR:=arch/i387 ARCH_MACHINE_HEADERS:=$(ARCH_SUBDIR)/machine/npx.h endif -ifneq ($(shell echo $(HOST) | grep -E ^x86_64-),) +ifneq ($(shell echo $(HOST) | grep -E '^x86_64-'),) ARCH_SUBDIR:=arch/x86_64 ARCH_MACHINE_HEADERS:=$(ARCH_SUBDIR)/machine/fpu.h endif