Commit 67439a8e authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Recover the ability to use std compilation flag in FFLAGS

parent b5943ae2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -190,6 +190,13 @@ do
    elif [ "x$cut_arg" = "x--with-fflags" ]; then
	custom_flags=$(echo $arg | cut -d '=' -f2)
	if [ "x$custom_flags" != "x" ]; then
	    num_characters=${#custom_flags}
	    if [ $num_characters -gt 4 ]; then
		if [ "x${custom_flags:$num_characters-4:4}" = "x-std" ]; then
		    std_flags=$(echo $arg | cut -d '=' -f3)
		    custom_flags="${custom_flags}=${std_flags}"
		fi
	    fi
	    FFLAGS=$custom_flags
	fi
    elif [ "x$cut_arg" = "x--with-hdf5" ]; then