Browse Source

[Pal] regression: enable -mavx only for AvxDisable

Other executables don't need AVX, and it causes failures on platforms
that don't support AVX.
Isaku Yamahata 4 years ago
parent
commit
a9c14dd345
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Pal/regression/Makefile

+ 3 - 1
Pal/regression/Makefile

@@ -1,7 +1,7 @@
 include ../src/Makefile.Host
 
 CC	= gcc
-CFLAGS	= -Wall -O2 -std=c11 -fno-builtin -nostdlib -mavx \
+CFLAGS	= -Wall -O2 -std=c11 -fno-builtin -nostdlib \
 	  -I../include/pal -I../lib -I../src
 
 preloads    = $(patsubst %.c,%,$(wildcard *.so.c))
@@ -50,6 +50,8 @@ manifest: manifest.template
 ../src/user_shared_start.o ../src/user_start.o: ../src/user_start.S
 	$(MAKE) -C ../src $(notdir $@)
 
+CFLAGS-AvxDisable += -mavx
+
 ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
 LDLIBS-preloads = ../src/user_shared_start.o $(graphene_lib) $(pal_lib)
 $(preloads): CFLAGS += -shared -fPIC