[haiku-bugs] Re: [Haiku] #6177: Obsolete option -I- used

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Wed, 16 Jun 2010 18:09:57 -0000

#6177: Obsolete option -I- used
---------------------------------+------------------------------------------
 Reporter:  Karvjorm             |       Owner:  nobody   
     Type:  bug                  |      Status:  new      
 Priority:  normal               |   Milestone:  R1       
Component:  - General            |     Version:  R1/alpha2
 Keywords:  obsolete option -I-  |   Blockedby:           
    Patch:  0                    |    Platform:  All      
 Blocking:                       |  
---------------------------------+------------------------------------------

Comment(by siarzhuk):

 Replying to [comment:1 stippi]:
 > The fix most likely needs to happen in the makefile-engine (needs to
 distinguish between GCC2 and GCC4). See /boot/develop/etc. The makefile-
 engine gets installed from an OptionalPackage.

 Hallo Stephan,
 some time ago I have idea to separate OBJ directories in makefile-engine
 for gcc2 and gcc4 versions - just to prevent link errors during switching
 the platform compiler.

 I have used following command to extract base version of compiler:

 {{{

 GCC_VER=gcc$(word 1, $(subst -, , $(subst ., , $(shell gcc
 -dumpversion))))

 }}}

 this compose "gcc2" and "gcc4" strings correspondently. In case this
 command looks reasonably "universal" I can add it to our makefile-engine
 with corresponding changes regarding -iquote.

 As far as I remember the "-I-" and "-iquote" options have a bit different
 behavior - but I need to try now to "refresh my mind" about this problem.
 :)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6177#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: