• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: recompile without -mlong-branch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recompile without -mlong-branch?


  • Subject: Re: recompile without -mlong-branch?
  • From: Tom Harrington <email@hidden>
  • Date: Wed, 2 Sep 2009 12:57:08 -0600

On Tue, Sep 1, 2009 at 10:21 AM, Jim Wintermyre<email@hidden> wrote:
>> I installed Snow Leopard and Xcode 3.2 a few days ago, and had good luck
>> for a while.  This evening, however, I tried a build in an Xcode project
>> which compiled and ran fine in Leopard / Xcode 3.1.3, and I got the
>> following link-time error:
>>
>> ld: warning: object file compiled with -mlong-branch which is no longer
>> needed. To remove this warning, recompile without -mlong-
>> branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
>
> Same here.  Using gcc 4.0, 10.4u SDK.

Same for me.  It's a universal binary, and the message only appears
when linking the PPC version.  Browsing the compile flags, there's no
sign that -mlong-branch was actually used.

I thought it might have something to do with my custom CFLAGS (that it
was implicitly enabled by something I had added) but removing them had
no effect.

This message only appears when compiling a release build, so I suspect
it's a side-effect of optimization settings or some other difference
between that build and a debug build.  I'll keep investigating...

--
Tom Harrington
email@hidden
AIM: atomicbird1
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: recompile without -mlong-branch?
      • From: Jay Reynolds Freeman <email@hidden>
    • Re: recompile without -mlong-branch?
      • From: Tom Harrington <email@hidden>
  • Prev by Date: Problem with NSFileManager
  • Next by Date: Re: recompile without -mlong-branch?
  • Previous by thread: Re: recompile without -mlong-branch?
  • Next by thread: Re: recompile without -mlong-branch?
  • Index(es):
    • Date
    • Thread