[Xapian-tickets] [Xapian] #492: -mtune=generic is not valid with g++ 3.4.3

Xapian nobody at xapian.org
Fri Jul 2 04:09:53 BST 2010


#492: -mtune=generic is not valid with g++ 3.4.3
--------------------------+-------------------------------------------------
 Reporter:  paulp         |       Owner:  olly    
     Type:  defect        |      Status:  assigned
 Priority:  normal        |   Milestone:  1.2.3   
Component:  Build system  |     Version:  1.2.2   
 Severity:  trivial       |    Keywords:          
Blockedby:                |    Platform:  Solaris 
 Blocking:                |  
--------------------------+-------------------------------------------------
Changes (by olly):

  * status:  new => assigned
  * milestone:  => 1.2.3


Comment:

 Ah yes, added in GCC 4.2 it seems:

 http://gcc.gnu.org/gcc-4.2/changes.html

 Unfortunately when it was added was not mentioned in the GCC manual.  I
 should have checked though - I've noticed before that it only sometimes
 says when a feature was added.

 So a pre-configure workaround would be:

 {{{
 #!sh
 perl -pi -e 's/-mtune=generic//' configure
 }}}

 And a post-configure workaround (pretty much what you did by hand):

 {{{
 #!sh
 perl -pi -e 's/-mtune=generic//' Makefile tests/Makefile
 }}}

 I'll document that in the ReleaseNotes, and fix configure not to pass this
 for older GCC.

-- 
Ticket URL: <http://trac.xapian.org/ticket/492#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list