Enable jit on Solaris: soname option and EXTRA_GCC_LIBS (PR jit/84288)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 21 Mar 2018 17:39:16 +0000 (17:39 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 21 Mar 2018 17:39:16 +0000 (17:39 +0000)
gcc/jit:
PR jit/84288
* Make-lang.in ($(LIBGCCJIT_FILENAME)): Add $(EXTRA_GCC_LIBS).

gcc:
PR jit/84288
* configure.ac (gcc_cv_ld_soname) <*-*-solaris2*>: Set.
* configure: Regenerate.

From-SVN: r258727

gcc/ChangeLog
gcc/configure
gcc/configure.ac
gcc/jit/ChangeLog
gcc/jit/Make-lang.in

index 8c70daa323f2d62c9d53427dcf77795d2091af64..17cad379d9029a81515b31b9af18ba1fbb1d969b 100644 (file)
@@ -1,3 +1,9 @@
+2018-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR jit/84288
+       * configure.ac (gcc_cv_ld_soname) <*-*-solaris2*>: Set.
+       * configure: Regenerate.
+
 2018-03-21  Tom de Vries  <tom@codesourcery.com>
 
        PR tree-optimization/83126
index c2d3f752347fc5ae747e46b515838615f8495fc0..7fe7efe8bb468b1e56fd9e4f2d90dbfe93ad801d 100755 (executable)
@@ -24490,6 +24490,12 @@ elif test x$gcc_cv_ld != x; then
       gcc_cv_ld_soname=yes
       ld_soname_option='-install_name'
       ;;
+    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
+    # ld compatiblity since some Solaris 10 update.
+    *-*-solaris2*)
+      gcc_cv_ld_soname=yes
+      ld_soname_option='-h'
+      ;;
   esac
 fi
 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
index c3c76acd0814b9c06924016b0d28f989f2134291..67e1682ad6640225ac50ff3d875e6a1a4e928086 100644 (file)
@@ -3687,6 +3687,12 @@ elif test x$gcc_cv_ld != x; then
       gcc_cv_ld_soname=yes
       ld_soname_option='-install_name'
       ;;
+    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
+    # ld compatiblity since some Solaris 10 update.
+    *-*-solaris2*)
+      gcc_cv_ld_soname=yes
+      ld_soname_option='-h'
+      ;;
   esac
 fi
 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
index 8ae54f93f84cdb21a8573fa607eb96b5fd6edb84..6e279f7d057f007f800d1119fe43d0abdcb554fe 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR jit/84288
+       * Make-lang.in ($(LIBGCCJIT_FILENAME)): Add $(EXTRA_GCC_LIBS).
+
 2018-03-09  David Malcolm  <dmalcolm@redhat.com>
            Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
index ba78f8ecaf3027a3be4bbd8d0767c454d5d12e04..280c094e9f2f7cafb9d563fee7bfdbb2d3cacf9f 100644 (file)
@@ -96,7 +96,7 @@ $(LIBGCCJIT_FILENAME): $(jit_OBJS) \
        $(EXTRA_GCC_OBJS)
        +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ -shared \
             $(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \
-            $(CPPLIB) $(LIBDECNUMBER) $(LIBS) $(BACKENDLIBS) \
+            $(CPPLIB) $(LIBDECNUMBER) $(EXTRA_GCC_LIBS) $(LIBS) $(BACKENDLIBS) \
             $(EXTRA_GCC_OBJS) \
             $(LIBGCCJIT_VERSION_SCRIPT_OPTION) \
             $(LIBGCCJIT_SONAME_OPTION)