File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -647,8 +647,8 @@ ifeq ($(OS),FreeBSD)
647
647
ifneq (,$(findstring gfortran,$(FC ) ) )
648
648
649
649
# First let's figure out what version of GCC we're dealing with
650
- _GCCMAJOR := $(shell $(FC ) -dumpversion | cut -d'.' -f1)
651
- _GCCMINOR := $(shell $(FC ) -dumpversion | cut -d'.' -f2)
650
+ _GCCMAJOR := $(shell $(FC ) -dumpversion 2>/dev/null | cut -d'.' -f1)
651
+ _GCCMINOR := $(shell $(FC ) -dumpversion 2>/dev/null | cut -d'.' -f2)
652
652
653
653
# The ports system uses major and minor for GCC < 5 (e.g. gcc49 for GCC 4.9), otherwise major only
654
654
ifeq ($(_GCCMAJOR ) ,4)
Original file line number Diff line number Diff line change 1
1
# Interrogate the fortran compiler (which is always GCC based) on where it is keeping its libraries
2
- STD_LIB_PATH := $(shell LANG=C $(FC ) -print-search-dirs | grep '^programs: =' | sed -e "s/^programs: =//")
3
- STD_LIB_PATH += :$(shell LANG=C $(FC ) -print-search-dirs | grep '^libraries: =' | sed -e "s/^libraries: =//")
2
+ STD_LIB_PATH := $(shell LANG=C $(FC ) -print-search-dirs 2>/dev/null | grep '^programs: =' | sed -e "s/^programs: =//")
3
+ STD_LIB_PATH += :$(shell LANG=C $(FC ) -print-search-dirs 2>/dev/null | grep '^libraries: =' | sed -e "s/^libraries: =//")
4
4
ifneq (,$(findstring CYGWIN,$(BUILD_OS ) ) ) # the cygwin-mingw32 compiler lies about it search directory paths
5
5
STD_LIB_PATH := $(shell echo '$(STD_LIB_PATH ) ' | sed -e "s!/lib/!/bin/!g")
6
6
endif
You can’t perform that action at this time.
0 commit comments