#3852: Problem with Compiler: section of "mutt -v" output for version 1.6.1 on
Solaris
--------------------------+---------------------
 Reporter:  richburridge  |      Owner:  brendan
     Type:  defect        |     Status:  new
 Priority:  minor         |  Milestone:
Component:  IMAP          |    Version:  1.6.1
 Keywords:  solaris       |
--------------------------+---------------------
 I'm in the process of integrating mutt version 1.6.1 into Solaris 12.
 We build it with the Studio compiler. The Studio C compiler doesn't
 recognize the "-v" and "--version" command line options, so the
 "Compiler:" section of the output for:

   $ mutt -v

 looks like:

 ...
 Compiler:
 usage: cc [ options ] files.  Use 'cc -flags' for details
 cc: Warning: Option --version passed to ld, if ld is invoked, ignored
 otherwise
 usage: cc [ options ] files.  Use 'cc -flags' for details
 cc: Sun C 5.13 SunOS_i386 2014/10/20
 ...

 The following patch fixes this nicely and is hopefully compatible
 with version output from the GNU C compiler too:

 --- mutt-1.6.1/Makefile.in.orig 2016-07-08 06:23:52.142383932 -0700
 +++ mutt-1.6.1/Makefile.in      2016-07-08 11:02:13.004791220 -0700
 @@ -1306,9 +1306,9 @@

  conststrings.c: txt2c config.status
         ( \
 -               $(CC) -v || \
 -               $(CC) --version || \
 -               $(CC) -V || \
 +               ($(CC) -v >/dev/null 2>&1 && $(CC) -v) || \
 +               ($(CC) --version >/dev/null 2>&1 && $(CC) --version) || \
 +               ($(CC) -V >/dev/null 2>&1 && $(CC) -V) || \
                 echo "unknown compiler"; \
         ) 2>&1 | ${srcdir}/txt2c.sh cc_version >conststrings_c
         echo "$(CFLAGS)" | ${srcdir}/txt2c.sh cc_cflags >>conststrings_c

 You will also need to apply it to the Makefile.am file too.

 Thanks.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3852>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to