< prev index next >

make/autoconf/libraries.m4

Print this page

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







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

127     # But once our supported minimum build and runtime platform
128     # has glibc 2.17, this can be removed as the functions are
129     # in libc.
130     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lrt"
131   fi
132 
133   # Atomic library
134   # 32-bit platforms needs fallback library for 8-byte atomic ops on Zero
135   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
136     if test "x$OPENJDK_TARGET_OS" = xlinux &&
137         (test "x$OPENJDK_TARGET_CPU" = xarm ||
138          test "x$OPENJDK_TARGET_CPU" = xm68k ||
139          test "x$OPENJDK_TARGET_CPU" = xmips ||
140          test "x$OPENJDK_TARGET_CPU" = xmipsel ||
141          test "x$OPENJDK_TARGET_CPU" = xppc ||
142          test "x$OPENJDK_TARGET_CPU" = xsh); then
143       BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
144     fi
145   fi
146 
147   # Programs which use C11 or C++11 atomics, like #include <atomic>,
148   # generally must link against -latomic on RISC-V
149   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xriscv64; then
150     BASIC_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS -latomic"
151     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
152   fi
153 
154   # perfstat lib
155   if test "x$OPENJDK_TARGET_OS" = xaix; then
156     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"
157   fi
158 
159   if test "x$OPENJDK_TARGET_OS" = xwindows; then
160     BASIC_JVM_LIBS="$BASIC_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \
161         comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
162         wsock32.lib winmm.lib version.lib psapi.lib"
163   fi
164 
165   JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
166   JDKEXE_LIBS=""
167   JVM_LIBS="$BASIC_JVM_LIBS"
168   OPENJDK_BUILD_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
169   OPENJDK_BUILD_JVM_LIBS="$BASIC_JVM_LIBS"
170 
171   AC_SUBST(JDKLIB_LIBS)
172   AC_SUBST(JDKEXE_LIBS)
173   AC_SUBST(JVM_LIBS)
< prev index next >