This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Support -Bstatic/-Bdynamic for linker version > 2
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 Apr 2009 09:31:12 -0700
- Subject: PATCH: Support -Bstatic/-Bdynamic for linker version > 2
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
When we check in tree linker for -Bstatic/-Bdynamic, we don't support
linker version > 2. I am going to check in this patch as an obvious
fix.
H.J.
----
2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
* configure: Regenerated.
--- gcc/configure.ac.static 2009-04-01 10:56:41.000000000 -0700
+++ gcc/configure.ac 2009-04-02 09:19:01.000000000 -0700
@@ -2756,7 +2756,7 @@ fi
AC_MSG_CHECKING(linker -Bstatic/-Bdynamic option)
gcc_cv_ld_static_dynamic=no
if test $in_tree_ld = yes ; then
- if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
+ if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
gcc_cv_ld_static_dynamic=yes
fi
elif test x$gcc_cv_ld != x; then