home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!unixhub!kaon.SLAC.Stanford.EDU!pfkeb
- From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz)
- Subject: Re: strip DB - Application doesn't work
- In-Reply-To: sam_s@NeXT.com's message of 17 Nov 92 01:33:05 GMT
- Message-ID: <PFKEB.92Nov19205325@kaon.SLAC.Stanford.EDU>
- Lines: 43
- Sender: news@unixhub.SLAC.Stanford.EDU
- Organization: Stanford Linear Accelerator Center
- References: <1992Nov15.210934.1825@aki.en.open.de> <5889@rosie.NeXT.COM>
- Date: Fri, 20 Nov 1992 04:53:26 GMT
-
- >>>>> On 17 Nov 92 01:33:05 GMT, sam_s@NeXT.com (Sam Streeper) said:
-
- > peter@aki.en.open.de writes:
- >> I have tested the AddressBook MiniExample Sept 92 ...
- >> and it works fine. But then I
- >> wanted to install it (make install). The make install command strips the
- >> application. This seems to be a very good idea, because it saves disk space
- >> ( >1 Mb to 40 K) !
- >>
- >> But this example works with dynamically loaded adaptors.
-
- > I haven't seen this example, but apps that will dynamically load code need
- > some symbols left behind to allow linking. You can only strip them so far:
-
- > strip -x or
- > strip -x -A
-
- > (I think... this is off the top of my head)
-
- According to /NextDeveloper/Makefile/app/app.make one wants to
- put in one's Makefile.postamble the following line...
-
- APP_STRIP_OPTS = $(DYLD_APP_STRIP_OPTS)
-
- It does "strip -A -n". I put this into an application that
- dynamically loads a bundle and also uses rld() directly, and it seems
- to work fine. I have not tried it on a DBKit based application.
-
- For my one and only DBKit app, I've put the following in my
- Makefile.preamble...
-
- LDFLAGS = -u libdbkit_s -u libNeXT_s -u libsys_s
-
- That magic was in the PreRelease notes on the DBKit. I don't know
- where it is in the final release.
-
- But watch out! The makefiles are considerably changed between
- the PreRelease and the final. I don't know if the above magic is
- still valid since I've not re-compiled my DBKit app since PreRelease days.
- --
- Paul F. Kunz pfkeb@slac.stanford.edu (NeXT mail ok)
- Stanford Linear Accelerator Center, Stanford University
- Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
-