Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PB/GCC exports/statics questions



Hi Nick, thanks for the info:

At 6:58 PM -0700 9/22/03, Nick Zitzmann wrote:
On Monday, September 22, 2003, at 06:04 PM, Jim Wintermyre wrote:

If I run strip manually from the command line on the output MachO binary (inside the MacOS folder in the built package), it works as expected. In this case I was using the -x flag, and it stripped all the symbols except the global ones I had explicitly exported via the exports file. nm then shows only these global names, along with any undefined externals (as expected). However, if I add STRIPFLAGS to the PB project, it doesn't seem to do anything, no matter what options I add. I'm sure I'm probably just doing something dumb in PB. Any ideas?

The "STRIPFLAGS" build setting is only followed if you do an install build, which you can manually do by running "pbxbuild install" in the project bundle's directory from the command line, or by setting some other build settings in the project. See <http://developer.apple.com/documentation/ReleaseNotes/DeveloperTools/ PBBuildSettings.html> for details.

I had actually already tried that. I set up a deployment target set up to do an install build, and it seemed to be doing everything correctly as it created the install hierarchy in /tmp. However, it didn't seem to do the strip phase. I basically want it to either do "strip -x" or "strip -s filename". I tried setting STRIPFLAGS to -x, and -s Exports.exp, where Exports.exp is a file in the project that has the names of the functions that I'm explicitly exporting (also set in the exports file field of the Linker Settings panel). Neither of these seem to actually do anything. Any ideas?

If you don't want to do an install build, but just want to run "strip" on the binary produced by building in PB, you can do it from a shell script build phase instead...

I had figured I may need to do this instead, just didn't have any experience with shell scripts yet. Any links to a good tutorial?

Thanks,
Jim
_______________________________________________
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: PB/GCC exports/statics questions (From: Nick Zitzmann <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.