Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: shared precompiled header files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shared precompiled header files



I now have the use of --dump-pch and --load-pch working for script-based invocations of pbxbuild when optimizations are turned off. Not quite what I had in mind but it'll do. This works fine for debug builds with optimization disabled.

When I do a release build I run into all kinds of grief, the first being gcc is upset that the use of a precompiled header is somehow inconsistent with the use of the compiler flag -mdynamic-no-pic, which appears to be Apple-Only, PowerPC specific.

The use of that flag appears to be a consequence of using pbxbuild and setting optimizations to level 2. It doesn't seem to appear to matter if I build the precompiled header with or without -mdynamic-no-pic present, gcc doesn't like it. Is there a known way to address this when using precompiled headers?
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: shared precompiled header files (From: Michael Brian Bentley <email@hidden>)
 >Re: shared precompiled header files (From: Devang Patel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.