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



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.

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...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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: Jim Wintermyre <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.