nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/admin/Makefile.def b/admin/Makefile.def
2index facc205..0daceaf 100644
3--- a/admin/Makefile.def
4+++ b/admin/Makefile.def
5@@ -310,7 +310,7 @@ endif
6
7 # Apple CLANG flags (identical to GCC)
8 ifeq ($(GAG_COMPILER_CKIND),clang)
9- GLOBAL_CFLAGS += -pipe -fPIC
10+ GLOBAL_CFLAGS += -fPIC
11 ifeq ($(RELEASE_MODE),no)
12 OPTION_CFLAGS += -Wall
13 endif
14@@ -360,7 +360,7 @@ endif
15
16 # GFORTRAN flags
17 ifeq ($(GAG_COMPILER_FKIND),gfortran)
18- GLOBAL_FFLAGS += -J$(moddir) -pipe -fno-backslash -fno-range-check
19+ GLOBAL_FFLAGS += -J$(moddir) -fno-backslash -fno-range-check
20 ifeq ($(GAG_USE_SANITIZE),yes)
21 GLOBAL_FFLAGS += -fsanitize=address -fsanitize=null
22 # Can not be used with our memory(ip):
23diff --git a/admin/define-system.sh b/admin/define-system.sh
24index 36d4ab9..0233259 100644
25--- a/admin/define-system.sh
26+++ b/admin/define-system.sh
27@@ -287,8 +287,8 @@ EOF
28 fi
29 elif [ `uname -p` = "arm" ]; then
30 GAG_MACHINE=arm64
31- if which gcc > /dev/null 2>&1; then
32- DEFAULT_CCOMPILER=gcc
33+ if which clang > /dev/null 2>&1; then
34+ DEFAULT_CCOMPILER=clang
35 fi
36 if which clang++ > /dev/null 2>&1; then
37 DEFAULT_CXXCOMPILER=clang++