Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-470

runConfigure does not pass link options to Makefile for AIX platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • CurrentCVS
    • None
    • XalanC
    • None
    • AIX

    Description

      Discovered this a while back when doing a build on AIX. runConfigure allows the user to specify additional link options via the 'l' flag, but it seems that on AIX, the user provided options are not appended to LDFLAGS.

      When link options are passed to runConfigure via the -l flag, they get stored in $linkeroptions .. which gets passed to

      LDFLAGS="$LDFLAGS $linkeroptions $bitstobuildLink"
      export LDFLAGS

      But in Makefile.incl.in file, very few platforms include the $LDFLAGS in their link step. For example, on the AIX platform:

      MAKE_SHARED = makeC++SharedLib_r -p 512 -brtl ${bitstobuildLink}
      LINK = $(CXX) -qnotempinc $(CXXFLAGS) -brtl $(PLATFORM_COMPILE_OPTIONS) ${bitstobuildLink}

      No mention of LDFLAGS in the link step. There are only a few platforms that use LDFLAGS at the link step but the majority of the platforms don't.

      This should be cleaned up.

      Attachments

        1. PatchXalanC470.txt
          9 kB
          June Ng

        Activity

          People

            june@ca.ibm.com June Ng
            june@ca.ibm.com June Ng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: