jdk/make/common/Defs-solaris.gmk
changeset 5579 1a5e995a710b
parent 2398 b0e6622ee72e
child 5580 629274e4c99f
equal deleted inserted replaced
5578:c25ebb5bc2d6 5579:1a5e995a710b
   637 #    .so version and not the .a or .so that came with the compilers.
   637 #    .so version and not the .a or .so that came with the compilers.
   638 #    With the newer compilers this could probably change back to -lCrun but
   638 #    With the newer compilers this could probably change back to -lCrun but
   639 #    in general this is ok to continue to do.
   639 #    in general this is ok to continue to do.
   640 LIBCXX = /usr/lib$(ISA_DIR)/libCrun.so.1
   640 LIBCXX = /usr/lib$(ISA_DIR)/libCrun.so.1
   641 
   641 
   642 # Math Library (libm.so), do not use -lm.
   642 # JDK now requires Solaris 10, so pick up libm.so.2
   643 #    There might be two versions of libm.so on the build system:
   643 LIBM = /usr/lib$(ISA_DIR)/libm.so.2
   644 #    libm.so.1 and libm.so.2, and we want libm.so.1.
       
   645 #    Depending on the Solaris release being used to build with,
       
   646 #    /usr/lib/libm.so could point at a libm.so.2, so we are
       
   647 #    explicit here so that the libjvm.so you have built will work on an
       
   648 #    older Solaris release that might not have libm.so.2.
       
   649 #    This is a critical factor in allowing builds on Solaris 10 or newer
       
   650 #    to run on Solaris 8 or 9.
       
   651 #
       
   652 #    Note: Historically there was also a problem picking up a static version
       
   653 #          of libm.a from the compiler area, but that problem has gone away
       
   654 #          with the newer compilers. Use of libm.a would cause .so bloat.
       
   655 #
       
   656 LIBM = /usr/lib$(ISA_DIR)/libm.so.1
       
   657 
   644 
   658 # Socket library
   645 # Socket library
   659 LIBSOCKET = -lsocket
   646 LIBSOCKET = -lsocket
   660 
   647 
   661 # GLOBAL_KPIC: If set means all libraries are PIC, position independent code
   648 # GLOBAL_KPIC: If set means all libraries are PIC, position independent code