Skip to content
Snippets Groups Projects
Commit b9318ab2 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

BugID: 1095

Replace -lg2c by -lgfortran for gcc-4
parent b2901127
No related branches found
No related tags found
No related merge requests found
...@@ -433,6 +433,10 @@ else ...@@ -433,6 +433,10 @@ else
# Do not sort LIBS. Usually, order is important and duplicates are # Do not sort LIBS. Usually, order is important and duplicates are
# intentional. # intentional.
LIBS="$LIBS $EXTERNAL_LIBS" LIBS="$LIBS $EXTERNAL_LIBS"
# If we're using GCC 4.x, we need to replace -lg2c by -lgfortran.
if test $lofar_gcc_major -ge 4; then
LIBS=`echo "$LIBS " | sed -e 's/-lg2c /-lgfortran/ '`
fi
LOFAR_DEPEND="$LOFAR_DEPEND $lfr_depend" LOFAR_DEPEND="$LOFAR_DEPEND $lfr_depend"
enable_external=yes enable_external=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment