home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.soft-sys.andrew
- Subject: Re: Superfluous -pic compilations?
- Message-ID: <13721@auspex-gw.auspex.com>
- Date: 24 Jul 92 03:45:53 GMT
- References: <1992Jul24.015941.286@news.eng.convex.com>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 14
- Nntp-Posting-Host: bootme.auspex.com
-
- >If only the non-pic object is used, why bother compiling with -pic too?
-
- Actually, the -pic objects should be the ones that are being used. Take
- a close look at "/usr/andrew/bin/makedo"; just because the Makefile is
- passing "<mumble>.o" to "makedo" doesn't mean that it's linking
- "<mumble>.o", rather than "shared/<mumble>.o", into the ".do" file....
-
- And the answer to the follow-up question is "because stuff that's
- statically linked into 'runapp', rather than put into a '.do' file,
- should be built non-pic, because otherwise you get the Global Offset
- Table From Hell and may have to compile stuff "-PIC" rather than "-pic".
- The net result is that I just decided to build both pic and non-pic
- ".o"s, shove the former into ".do" files, and shove the latter into ".a"
- files.
-