bugGNUstep - Bugs: bug #15164, Building Tools on Darwin 8 with...

Group
 
 

bug #15164: Building Tools on Darwin 8 with FSF GCC causes executable to link against Apple OBJC lib

Submitter:  Emanuel Zephir <ezephir>
Submitted:  Wed 07 Dec 2005 09:19:07 AM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 17 Jan 2008 01:25:15 AM UTC, comment #1: 

As far as I can see (and test) in the current gnustep-make,
RUNTIME_FLAG is automatically used when linking tools, so
-fgnu-runtime is passed to gcc even when linking, which is
reported to solve the problem that Emanuel was having. :-)

Thanks

Nicola Pero <nico>
Group Member
Wed 07 Dec 2005 09:19:07 AM UTC, original submission:  

It seems that the GNUStep makefiles (GNUMake 1.11.1), upon making a tool, actually link against Apple's objective-c libraries by specifying -lobjc to the linker. This causes make_services and other similar tools to crash while compiling GNUStep.

I fixed this by adding RUNTIME_FLAG to the linker rule in the tool.make Instance makefile. This way -fgnu-runtime gets specified, which results in the gnu objc library being linked regardless of -lobjc.

Emanuel Zephir <ezephir>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nico (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-17 nico Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code