summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-04-27 11:20:09 +0300
committerVyacheslav Barinov <v.barinov@samsung.com>2017-04-28 11:17:42 +0000
commit58909fae5d4d6bf5048b16cae96a8fe9b9405a55 (patch)
treef442c7946d67d046802ad8a8857200203f16468c
parentb85631a2e7a37e74b9553de1ae01b96aa0f16964 (diff)
downloadlinaro-gcc-58909fae5d4d6bf5048b16cae96a8fe9b9405a55.tar.gz
linaro-gcc-58909fae5d4d6bf5048b16cae96a8fe9b9405a55.tar.bz2
linaro-gcc-58909fae5d4d6bf5048b16cae96a8fe9b9405a55.zip
Do not build libgfortran unless requested explicitlysubmit/tizen_base/20170504.000140accepted/tizen/base/20170512.171103
* 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 <v.barinov@samsung.com>
-rw-r--r--gcc/fortran/config-lang.in7
1 files 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"
-