Skip to content

Commit fe91e05

Browse files
committed
make: fix CC_VENDOR identification on Ubuntu
ubuntu$ gcc --version gcc-9 (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. versus arch$ gcc --version gcc (Arch Linux 9.3.0-1) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 parent 71755bc commit fe91e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endif
7474
# export LSAN_OPTIONS=suppressions=.asanignore
7575
AFLAGS = -fsanitize=address #-fsanitize=undefined -fno-omit-frame-pointer
7676

77-
CC_VENDOR := $(firstword $(filter gcc clang icc XL,$(shell $(CC) --version)))
77+
CC_VENDOR := $(patsubst gcc%,gcc,$(firstword $(filter gcc clang icc XL,$(shell $(CC) --version))))
7878
FC_VENDOR := $(firstword $(filter GNU ifort XL,$(shell $(FC) --version 2>&1 || $(FC) -qversion)))
7979

8080
# Default extra flags by vendor

0 commit comments

Comments
 (0)