60
61 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
62 AC_MSG_ERROR([Static linking of libstdc++ was not possible!])
63 fi
64
65 # If dynamic was requested, it's available since it would fail above otherwise.
66 # If dynamic wasn't requested, go with static unless it isn't available.
67 AC_MSG_CHECKING([how to link with libstdc++])
68 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then
69 AC_MSG_RESULT([dynamic])
70 else
71 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
72 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
73 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now
74 # just use the same setting as for the TARGET toolchain.
75 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
76 AC_MSG_RESULT([static])
77 fi
78 fi
79
80 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
81 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then
82 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
83 fi
84 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
85 LIBCXX_JVM="-lCrun"
86 fi
87
88 AC_SUBST(LIBCXX)
89
90 # Setup Windows runtime dlls
91 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
92 TOOLCHAIN_SETUP_VS_RUNTIME_DLLS
93 fi
94 ])
|
60
61 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
62 AC_MSG_ERROR([Static linking of libstdc++ was not possible!])
63 fi
64
65 # If dynamic was requested, it's available since it would fail above otherwise.
66 # If dynamic wasn't requested, go with static unless it isn't available.
67 AC_MSG_CHECKING([how to link with libstdc++])
68 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then
69 AC_MSG_RESULT([dynamic])
70 else
71 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
72 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
73 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now
74 # just use the same setting as for the TARGET toolchain.
75 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
76 AC_MSG_RESULT([static])
77 fi
78 fi
79
80 AC_SUBST(LIBCXX)
81
82 # Setup Windows runtime dlls
83 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
84 TOOLCHAIN_SETUP_VS_RUNTIME_DLLS
85 fi
86 ])
|