File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -647,8 +647,8 @@ ifeq ($(OS),FreeBSD)
647647ifneq (,$(findstring gfortran,$(FC ) ) )
648648
649649# 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)
652652
653653# The ports system uses major and minor for GCC < 5 (e.g. gcc49 for GCC 4.9), otherwise major only
654654ifeq ($(_GCCMAJOR ) ,4)
Original file line number Diff line number Diff line change 11# 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: =//")
44ifneq (,$(findstring CYGWIN,$(BUILD_OS ) ) ) # the cygwin-mingw32 compiler lies about it search directory paths
55STD_LIB_PATH := $(shell echo '$(STD_LIB_PATH ) ' | sed -e "s!/lib/!/bin/!g")
66endif
You can’t perform that action at this time.
0 commit comments