[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


 Ah yes, added in GCC 4.2 it seems:


 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:

 perl -pi -e 's/-mtune=generic//' configure

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

 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/>

More information about the Xapian-tickets mailing list