diff options
Diffstat (limited to 'contrib/arm-optimized-routines/Makefile')
-rw-r--r-- | contrib/arm-optimized-routines/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/arm-optimized-routines/Makefile b/contrib/arm-optimized-routines/Makefile index 169f89e2c9d6..e7503dbd2f60 100644 --- a/contrib/arm-optimized-routines/Makefile +++ b/contrib/arm-optimized-routines/Makefile @@ -1,7 +1,7 @@ # Makefile - requires GNU make # -# Copyright (c) 2018-2020, Arm Limited. -# SPDX-License-Identifier: MIT +# Copyright (c) 2018-2024, Arm Limited. +# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception srcdir = . prefix = /usr @@ -25,6 +25,17 @@ LDLIBS = AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib INSTALL = install +# Detect OS. +# Assume Unix environment: Linux, Darwin, or Msys. +OS := $(shell uname -s) +OS := $(patsubst MSYS%,Msys,$(OS)) +# Following math dependencies can be adjusted in config file +# if necessary, e.g. for Msys. +libm-libs = -lm +libc-libs = -lc +mpfr-libs = -lmpfr +gmp-libs = -lgmp +mpc-libs = -lmpc all: |