Optimize Arch Linux check

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
DaniAndTheWeb 2023-05-05 22:51:56 +02:00 committed by GitHub
parent a8815a683e
commit c0a86cc556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,13 +13,9 @@ ifndef UNAME_M
UNAME_M := $(shell uname -m)
endif
ARCH_LINUX1 := $(shell grep "Arch Linux" /etc/os-release 2>/dev/null)
ARCH_LINUX2 := $(shell grep "ID_LIKE=arch" /etc/os-release 2>/dev/null)
ifdef ARCH_LINUX1
ARCH_ADD = -lcblas
endif
ifdef ARCH_LINUX2
ARCH_ADD = -lcblas
ARCH_LINUX := $(shell grep -e "Arch Linux" -e "ID_LIKE=arch" /etc/os-release)
ifdef ARCH_LINUX
LDFLAGS_EXTRA += -lcblas
endif
CCV := $(shell $(CC) --version | head -n 1)