From 58909fae5d4d6bf5048b16cae96a8fe9b9405a55 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Thu, 27 Apr 2017 11:20:09 +0300 Subject: Do not build libgfortran unless requested explicitly * gcc/fortran/config-lang.in : add conditional target_libs setup. This option does not make sense in upstream GCC - Fortran frontend is useless without runtime, but will work with qemu-accel in Tizen OBS environment. Change-Id: Ie42fa3201a0bc022ef46ef53b51be896ad091943 Signed-off-by: Slava Barinov --- gcc/fortran/config-lang.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/config-lang.in b/gcc/fortran/config-lang.in index b81dadd3adf..76b1d06c441 100644 --- a/gcc/fortran/config-lang.in +++ b/gcc/fortran/config-lang.in @@ -27,7 +27,10 @@ language="fortran" compilers="f951\$(exeext)" -target_libs="target-libgfortran target-libbacktrace" +if test x${enable_libgfortran} == xyes ; then + target_libs="target-libgfortran target-libbacktrace" +else + target_libs= +fi gtfiles="\$(srcdir)/fortran/f95-lang.c \$(srcdir)/fortran/trans-decl.c \$(srcdir)/fortran/trans-intrinsic.c \$(srcdir)/fortran/trans-io.c \$(srcdir)/fortran/trans-stmt.c \$(srcdir)/fortran/trans-types.c \$(srcdir)/fortran/trans-types.h \$(srcdir)/fortran/trans.h \$(srcdir)/fortran/trans-const.h" - -- cgit v1.2.3