[GHC] #13583: configure.ac: handle AR=, NM= and other flags as arguments to ./configure

GHC ghc-devs at haskell.org
Mon Apr 17 17:04:20 UTC 2017


#13583: configure.ac: handle AR=, NM= and other flags as arguments to ./configure
-------------------------------------+-------------------------------------
           Reporter:  slyfox         |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 A followup on comments around
 https://phabricator.haskell.org/rGHC79848f18805a

 The following does not work currently:
 {{{
 $ ./configure \
     --enable-unregisterised \
     --enable-bfd-debug \
     NM=gcc-nm \
     AR=gcc-ar \
     RANLIB=gcc-ranlib
 ...
    ar           : /usr/bin/ar
    ld           : /usr/bin/ld
    nm           : /usr/bin/nm
    objdump      : /usr/bin/objdump
    ranlib       : /usr/bin/ranlib
 }}}

 The workaround is to use
 {{{
 $ ./configure --enable-unregisterised \
               --with-nm=gcc-nm \
               --with-ar=gcc-ar \
               --with-ranlib=gcc-ranlib
 }}}

 The plan is to make it work (perhaps by using '''AC_PROG_AR'''?).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13583>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list