home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!scd.hp.com!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!mjs
- From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: Questions on HP-UX and system V OS
- Message-ID: <7371294@hpfcso.FC.HP.COM>
- Date: 4 Sep 92 21:54:10 GMT
- References: <1992Sep3.230252.16529@zip.eecs.umich.edu>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Lines: 41
-
- In comp.sys.hp, cyc@z.eecs.umich.edu (Yi-Chieh Chang) writes:
-
- > I got a 'flea' program to convert VLSI layout to Postscript files.
- > The program is written for Sun BSD4.3 OS.
-
- Are you sure? Those look like SunOS 4.x options to me...
-
- > The command is
- > ld -dc -dp -e start -X -o flea /usr/lib/crt0.o $(COBJS) $(CLIBS)
- >
- > The problem is the options -dc, -dp, and -X.
-
- If this indeed SunOS, you can probably ignore them:
-
- "-dc" says, "copy directly referenced data from shared libraries", which is
- always done in HP-UX.
-
- "-dp" says, "set up jump tables for calls into shared libraries", which is also
- always done in HP-UX.
-
- "-X" says, "leave in local symbols other than the compiler generated ones".
- This is always done by HP-UX, unless you use "-x", which the compilers
- generally do.
-
- The real question is, why are they calling "ld" directly? It is bound to lead
- to these sort of portability problems. Just use:
-
- cc $(COBJS) $(CLIBS)
-
- on both architectures; "cc" always knows how to call "ld" correctly. You may
- want to remove "-lc" from $(CLIBS) if present. If not present, that could be
- why they were calling "ld" directly - "cc" normally adds it.
-
- If for some reason you really must call "ld" directly, you will also have to
- change /usr/lib/crt0.o to /lib/crt0.o
-
- --------------
- Marc Sabatella (marc@hpmonk.fc.hp.com)
- Disclaimers:
- 2 + 2 = 3, for suitably small values of 2
- Bill (H.) and Dave (P.) may not always agree with me
-