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

Reply via email to