[Bug target/45258] linkage on -lm and -lpthread should be purged from darwin build

2010-08-11 Thread pinskia at gmail dot com


--- Comment #1 from pinskia at gmail dot com  2010-08-11 17:03 ---
Subject: Re:   New: linkage on -lm and -lpthread should be purged from darwin
build

What about removing those in the driver?  This way it works correctly  
for other makefiles too?

On Aug 11, 2010, at 9:30 AM, howarth at nitro dot med dot uc dot edu  
gcc-bugzi...@gcc.gnu.org wrote:

 Currently libjava is being improperly linked (PR java/41991) due to  
 the
 presence of -lm and -lpthreads on the shared library linkages. This  
 causes
 libSystem.dylib to be pushed to the front of the linkage and breaks  
 the logic
 used by libgcc_ext. We should add and set defines for  
 HAVE_LIBSYSTEM_PTHREADS
 and HAVE_LIBSYSTEM_LIBMATH to configure and use these for  
 conditionals in the
 Makefile.am's where appropriate to avoid passing -lm and -lpthread  
 on darwin.


 -- 
   Summary: linkage on -lm and -lpthread should be purged from
darwin build
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: *-apple-darwin*
  GCC host triplet: *-apple-darwin*
 GCC target triplet: *-apple-darwin*


 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45258



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45258



[Bug target/45258] linkage on -lm and -lpthread should be purged from darwin build

2010-08-11 Thread howarth at nitro dot med dot uc dot edu


--- Comment #2 from howarth at nitro dot med dot uc dot edu  2010-08-12 
00:54 ---
Created an attachment (id=21459)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21459action=view)
proposed patch to add and use remove-outfile

The proposed patch implements remove-outfile to parse out -lm and -lpthread
from LINK_SPEC in darwin.h.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45258



[Bug target/45258] linkage on -lm and -lpthread should be purged from darwin build

2010-08-11 Thread howarth at nitro dot med dot uc dot edu


--- Comment #3 from howarth at nitro dot med dot uc dot edu  2010-08-12 
00:57 ---
Note that while the proposed patch properly parses out -lm and -lpthread from
linkages done with the compiler, this is insufficient to solve the problems
with libjava. The hard coded use of -lm in libjava/Makefile.am has to be fixed
as well since this links directly with ld via libtool.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45258