summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-04-27 11:20:09 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2024-05-09 13:35:55 +0900
commit48e165a1c6755f8e60b47cf90863a7eb166082ab (patch)
tree75a655f412683cf807d705ca7d0224f3bc79ad81
parentb2a3498a48bc7926709312b8b95d467323fd096c (diff)
downloadgcc-48e165a1c6755f8e60b47cf90863a7eb166082ab.tar.gz
gcc-48e165a1c6755f8e60b47cf90863a7eb166082ab.tar.bz2
gcc-48e165a1c6755f8e60b47cf90863a7eb166082ab.zip
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 <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 c76919823c5..5c0c42114b3 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.cc \$(srcdir)/fortran/trans-decl.cc \$(srcdir)/fortran/trans-intrinsic.cc \$(srcdir)/fortran/trans-io.cc \$(srcdir)/fortran/trans-stmt.cc \$(srcdir)/fortran/trans-types.cc \$(srcdir)/fortran/trans-types.h \$(srcdir)/fortran/trans.h \$(srcdir)/fortran/trans-const.h"
-