< prev index next >

make/autoconf/libraries.m4

Print this page

  1 #
  2 # Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
  3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4 #
  5 # This code is free software; you can redistribute it and/or modify it
  6 # under the terms of the GNU General Public License version 2 only, as
  7 # published by the Free Software Foundation.  Oracle designates this
  8 # particular file as subject to the "Classpath" exception as provided
  9 # by Oracle in the LICENSE file that accompanied this code.
 10 #
 11 # This code is distributed in the hope that it will be useful, but WITHOUT
 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14 # version 2 for more details (a copy is included in the LICENSE file that
 15 # accompanied this code).
 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any

132     # But once our supported minimum build and runtime platform
133     # has glibc 2.17, this can be removed as the functions are
134     # in libc.
135     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lrt"
136   fi
137 
138   # Atomic library
139   # 32-bit platforms needs fallback library for 8-byte atomic ops on Zero
140   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
141     if test "x$OPENJDK_TARGET_OS" = xlinux &&
142         (test "x$OPENJDK_TARGET_CPU" = xarm ||
143          test "x$OPENJDK_TARGET_CPU" = xm68k ||
144          test "x$OPENJDK_TARGET_CPU" = xmips ||
145          test "x$OPENJDK_TARGET_CPU" = xmipsel ||
146          test "x$OPENJDK_TARGET_CPU" = xppc ||
147          test "x$OPENJDK_TARGET_CPU" = xsh); then
148       BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
149     fi
150   fi
151 






152   # perfstat lib
153   if test "x$OPENJDK_TARGET_OS" = xaix; then
154     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"
155   fi
156 
157   if test "x$OPENJDK_TARGET_OS" = xwindows; then
158     BASIC_JVM_LIBS="$BASIC_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \
159         comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
160         wsock32.lib winmm.lib version.lib psapi.lib"
161   fi
162 
163   JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
164   JDKEXE_LIBS=""
165   JVM_LIBS="$BASIC_JVM_LIBS"
166   OPENJDK_BUILD_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
167   OPENJDK_BUILD_JVM_LIBS="$BASIC_JVM_LIBS"
168 
169   AC_SUBST(JDKLIB_LIBS)
170   AC_SUBST(JDKEXE_LIBS)
171   AC_SUBST(JVM_LIBS)

  1 #
  2 # Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
  3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4 #
  5 # This code is free software; you can redistribute it and/or modify it
  6 # under the terms of the GNU General Public License version 2 only, as
  7 # published by the Free Software Foundation.  Oracle designates this
  8 # particular file as subject to the "Classpath" exception as provided
  9 # by Oracle in the LICENSE file that accompanied this code.
 10 #
 11 # This code is distributed in the hope that it will be useful, but WITHOUT
 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14 # version 2 for more details (a copy is included in the LICENSE file that
 15 # accompanied this code).
 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any

132     # But once our supported minimum build and runtime platform
133     # has glibc 2.17, this can be removed as the functions are
134     # in libc.
135     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lrt"
136   fi
137 
138   # Atomic library
139   # 32-bit platforms needs fallback library for 8-byte atomic ops on Zero
140   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
141     if test "x$OPENJDK_TARGET_OS" = xlinux &&
142         (test "x$OPENJDK_TARGET_CPU" = xarm ||
143          test "x$OPENJDK_TARGET_CPU" = xm68k ||
144          test "x$OPENJDK_TARGET_CPU" = xmips ||
145          test "x$OPENJDK_TARGET_CPU" = xmipsel ||
146          test "x$OPENJDK_TARGET_CPU" = xppc ||
147          test "x$OPENJDK_TARGET_CPU" = xsh); then
148       BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
149     fi
150   fi
151 
152   # Because RISC-V only has word-sized atomics, it requries libatomic where
153   # other common architectures do not.  So link libatomic by default.
154   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xriscv64; then
155     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
156   fi
157 
158   # perfstat lib
159   if test "x$OPENJDK_TARGET_OS" = xaix; then
160     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"
161   fi
162 
163   if test "x$OPENJDK_TARGET_OS" = xwindows; then
164     BASIC_JVM_LIBS="$BASIC_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \
165         comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
166         wsock32.lib winmm.lib version.lib psapi.lib"
167   fi
168 
169   JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
170   JDKEXE_LIBS=""
171   JVM_LIBS="$BASIC_JVM_LIBS"
172   OPENJDK_BUILD_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
173   OPENJDK_BUILD_JVM_LIBS="$BASIC_JVM_LIBS"
174 
175   AC_SUBST(JDKLIB_LIBS)
176   AC_SUBST(JDKEXE_LIBS)
177   AC_SUBST(JVM_LIBS)
< prev index next >