make/autoconf/libraries.m4
changeset 49120 c04d813140dc
parent 47701 be620a591379
child 49241 de4b3a04feae
child 56228 a20f3126f7c0
equal deleted inserted replaced
49119:216c1a039335 49120:c04d813140dc
     1 #
     1 #
     2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     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
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    99   LIB_SETUP_ALSA
    99   LIB_SETUP_ALSA
   100   LIB_SETUP_LIBFFI
   100   LIB_SETUP_LIBFFI
   101   LIB_SETUP_BUNDLED_LIBS
   101   LIB_SETUP_BUNDLED_LIBS
   102   LIB_SETUP_MISC_LIBS
   102   LIB_SETUP_MISC_LIBS
   103   LIB_SETUP_SOLARIS_STLPORT
   103   LIB_SETUP_SOLARIS_STLPORT
       
   104 
       
   105   if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
       
   106     ALWAYS_LIBS="-lc"
       
   107   else
       
   108     ALWAYS_LIBS=""
       
   109   fi
       
   110 
       
   111   BASIC_JDKLIB_LIBS=""
       
   112   if test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
       
   113     BASIC_JDKLIB_LIBS="-ljava -ljvm"
       
   114   fi
       
   115   BASIC_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS $ALWAYS_LIBS"
       
   116 
       
   117   # Math library
       
   118   if test "x$OPENJDK_TARGET_OS" != xsolaris; then
       
   119     BASIC_JVM_LIBS="$LIBM"
       
   120   else
       
   121     # FIXME: This hard-coded path is not really proper.
       
   122     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
       
   123       BASIC_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1"
       
   124     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
       
   125       BASIC_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1"
       
   126     fi
       
   127     BASIC_JVM_LIBS="$BASIC_SOLARIS_LIBM_LIBS"
       
   128   fi
       
   129 
       
   130   # Dynamic loading library
       
   131   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
       
   132     BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBDL"
       
   133   fi
       
   134 
       
   135   # Threading library
       
   136   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
       
   137     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
       
   138   elif test "x$OPENJDK_TARGET_OS" = xsolaris; then
       
   139     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lthread"
       
   140   fi
       
   141 
       
   142   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
       
   143     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lsocket -lsched -ldoor -ldemangle -lnsl \
       
   144         -lrt"
       
   145     BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBCXX_JVM"
       
   146   fi
       
   147 
       
   148   if test "x$OPENJDK_TARGET_OS" = xwindows; then
       
   149     BASIC_JVM_LIBS="$BASIC_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \
       
   150         comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
       
   151         wsock32.lib winmm.lib version.lib psapi.lib"
       
   152   fi
       
   153   BASIC_JVM_LIBS="$BASIC_JVM_LIBS $ALWAYS_LIBS"
       
   154 
       
   155   JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
       
   156   JDKEXE_LIBS=""
       
   157   JVM_LIBS="$BASIC_JVM_LIBS"
       
   158   OPENJDK_BUILD_JDKLIB_LIBS="$BASIC_JDKLIB_LIBS"
       
   159   OPENJDK_BUILD_JVM_LIBS="$BASIC_JVM_LIBS"
       
   160 
       
   161   AC_SUBST(JDKLIB_LIBS)
       
   162   AC_SUBST(JDKEXE_LIBS)
       
   163   AC_SUBST(JVM_LIBS)
       
   164   AC_SUBST(OPENJDK_BUILD_JDKLIB_LIBS)
       
   165   AC_SUBST(OPENJDK_BUILD_JVM_LIBS)
   104 ])
   166 ])
   105 
   167 
   106 ################################################################################
   168 ################################################################################
   107 # Setup various libraries, typically small system libraries
   169 # Setup various libraries, typically small system libraries
   108 ################################################################################
   170 ################################################################################