Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6380587

Make Solaris libm.so dependency explicitly libm.so.1

XMLWordPrintable

    • b75
    • generic
    • generic

      Can we build on Solaris 9/10/11 and get our JDK to still run on Solaris 8?
      This is part of that investigation.

      Currently the official builds on Solaris 8 use -lm or /usr/lib/libm.so in links of libraries or programs that need libm (math library functions). On Solaris 8 this ends up being a dependency on libm.so.1 because libm.so is a softlink to libm.so.1. But when you build on Solaris 9/10/11, libm.so is a softlink to libm.so.2, which is a library that does not exist on Solaris 8.

      Since we have no need for libm.so.2, I'm proposing that we explicitly ask for a dependency on libm.so.1, so that when building on Solaris 9/10/11, the libraries and executables have a chance of working on Solaris 8 or the older releases.

      There may be other issues with builds on Solaris 9/10/11 running on Solaris 8, but this was the first one found.

      After fixing this, a Solaris 10 built JDK actually is able to run 'java -version' on a Solaris 8 machine.
      Further testing is required.
      Will also clean up use of CPLUSPLUSLIBRARY and MIXEDCPLUSPLUSLIBRARY (which isn't needed anymore).

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: