Remove-march-native-from-COMMON_CFLAGS.patch 869 B

12345678910111213141516171819202122232425
  1. From ce82762aef3f8cdbdd340f39f95d2491f69a7da0 Mon Sep 17 00:00:00 2001
  2. From: Nicolas Vigier <boklm@torproject.org>
  3. Date: Mon, 29 Mar 2021 13:42:48 +0200
  4. Subject: [PATCH] Remove -march=native from COMMON_CFLAGS
  5. The -march=native flag is causing an error on some hardware. It can also
  6. make the build non-reproducible when not building on the same hardware.
  7. ---
  8. lucet-builtins/Makefile | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/lucet-builtins/Makefile b/lucet-builtins/Makefile
  11. index 6ddbcfd..de7e540 100644
  12. --- a/lucet-builtins/Makefile
  13. +++ b/lucet-builtins/Makefile
  14. @@ -7,7 +7,7 @@ LIBBUILTINS_OBJS:=$(addprefix build/, \
  15. strcmp.o \
  16. strlen.o )
  17. -COMMON_CFLAGS:= --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC \
  18. +COMMON_CFLAGS:= --std=gnu99 -Ofast -Wall -Werror -fPIC \
  19. -I../lucet-runtime/include
  20. default: build/libbuiltins.so