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

Setting environment variable VARIANT causes build error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • infrastructure
    • None
    • beta2
    • generic
    • generic



      Name: dm26566 Date: 07/17/2001


      If the environment variable VARIANT is set in the shell prior to
      a build, then the value of SUFFIX may be set incorrectly resulting
      in the optimized JVM being copied as the debug JVM by
      make/java/redist/Makefile :

       [chop!]
      rm -f ../../../build/solaris-sparc/lib/sparc/server/libjvm_g.so
      /usr/bin/cp /usr/local/java/jdk1.4.0/solsparc/jre/lib/sparc/server/libjvm.so
      ../../../build/solaris-sparc/lib/sparc/server/libjvm_g.so
      /usr/bin/echo ../../../build/solaris-sparc/lib/sparc/server/libjvm_g.so >>
      ../../../build/solaris-sparc/tmp/java/.installed.files
      rm -f ../../../build/solaris-sparc/lib/sparc/client/libjvm_g.so
      /usr/bin/cp /usr/local/java/jdk1.4.0/solsparc/jre/lib/sparc/client/libjvm.so
      ../../../build/solaris-sparc/lib/sparc/client/libjvm_g.so
      /usr/bin/echo ../../../build/solaris-sparc/lib/sparc/client/libjvm_g.so >>
      ../../../build/solaris-sparc/tmp/java/.installed.files
       [chop!]

      The prolem is that Defs.gmk attempts to be slick when setting the
      value of SUFFIX:

         #
         # Suffixes for various VARIANTs
         #
         OPT_SUFFIX =
         DBG_SUFFIX = _g
         SUFFIX = $($(VARIANT)_SUFFIX)

      If VARIANT is anything but DBG, SUFFIX gets set to the value of
      OPT_SUFFIX.

      Even more insidious is that if VARIANT is set, then there are not
      two builds of each build unit - one with VARIANT=OPT and one with
      VARIANT=DBG.


      ======================================================================

            dmcduffisunw Dale Mcduffie (Inactive)
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: