Optimize Arch Linux check
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
a8815a683e
commit
c0a86cc556
1 changed files with 3 additions and 7 deletions
10
Makefile
10
Makefile
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue