diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-01-31 13:52:42 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-01-31 13:52:42 +0000 |
commit | c6092243c9d5320aad5a6f0d03c7d80658bd6c2e (patch) | |
tree | e89584ce528d3f9d743b6a0d3da88c5ce5808271 /gcc/fortran | |
parent | d7862be3faeac281495f58baab92408362275514 (diff) | |
download | gcc-c6092243c9d5320aad5a6f0d03c7d80658bd6c2e.zip gcc-c6092243c9d5320aad5a6f0d03c7d80658bd6c2e.tar.gz gcc-c6092243c9d5320aad5a6f0d03c7d80658bd6c2e.tar.bz2 |
configure.ac (gcc_cv_ld_static_option): Define.
gcc:
* configure.ac (gcc_cv_ld_static_option): Define.
(gcc_cv_ld_dynamic_option): Define.
(gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
instead.
(HAVE_LD_STATIC_DYNAMIC): Update message.
(LD_STATIC_OPTION): Define.
(LD_DYNAMIC_OPTION): Define.
* configure: Regenerate.
* config.in: Regenerate.
* gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
HAVE_LD_STATIC_DYNAMIC]: Use them.
gcc/cp:
* g++spec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
gcc/fortran:
* gfortranspec.c (add_arg_libgfortran) [HAVE_LD_STATIC_DYNAMIC] Use
LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
gcc/go:
* gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
From-SVN: r169435
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/gfortranspec.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ecdf2de..f787a97 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gfortranspec.c (add_arg_libgfortran) [HAVE_LD_STATIC_DYNAMIC] Use + LD_STATIC_OPTION, LD_DYNAMIC_OPTION. + 2011-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/47042 diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index a9bc714..2d732fd 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -192,12 +192,12 @@ add_arg_libgfortran (bool force_static ATTRIBUTE_UNUSED) { #ifdef HAVE_LD_STATIC_DYNAMIC if (force_static) - append_option (OPT_Wl_, "-Bstatic", 1); + append_option (OPT_Wl_, LD_STATIC_OPTION, 1); #endif append_option (OPT_l, FORTRAN_LIBRARY, 1); #ifdef HAVE_LD_STATIC_DYNAMIC if (force_static) - append_option (OPT_Wl_, "-Bdynamic", 1); + append_option (OPT_Wl_, LD_DYNAMIC_OPTION, 1); #endif } |