Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-1052

Hardcoded linker options (`-lm' & `-lc') cause problems when configuring with a different compiler than `gcc'

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.2.x
    • Configuration
    • None
    • Linux and Embedded

    • Linker Error

    Description

      We are having problems with the configuration scripts. Our compiler
      refuses to accept `-lm' & `-lc' GNU style command line switches to
      denote linking with a standard library. They are hardcoded in
      `libc_decl.sh' and `makefile.common'. We propose introducing a special
      `Makefile' variable `WITHOUT_BASE_LIBS' that excludes generating them
      for compilation of configuration files during the configure step.

      Patch is against trunk.

      Attachments

        Activity

          People

            sebor Martin Sebor
            danmey Wojciech Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h