home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10076 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.8 KB

  1. 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
  2. From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Questions on HP-UX and system V OS
  5. Message-ID: <7371294@hpfcso.FC.HP.COM>
  6. Date: 4 Sep 92 21:54:10 GMT
  7. References: <1992Sep3.230252.16529@zip.eecs.umich.edu>
  8. Organization: Hewlett-Packard, Fort Collins, CO, USA
  9. Lines: 41
  10.  
  11. In comp.sys.hp, cyc@z.eecs.umich.edu (Yi-Chieh Chang) writes:
  12.  
  13. > I got a 'flea' program to convert VLSI layout to Postscript files.
  14. > The program is written for Sun BSD4.3 OS.
  15.  
  16. Are you sure?  Those look like SunOS 4.x options to me...
  17.  
  18. > The command is
  19. >   ld -dc -dp -e start  -X -o flea /usr/lib/crt0.o $(COBJS) $(CLIBS)
  20. > The problem is the options -dc, -dp, and -X.
  21.  
  22. If this indeed SunOS, you can probably ignore them:
  23.  
  24. "-dc" says, "copy directly referenced data from shared libraries", which is
  25. always done in HP-UX.
  26.  
  27. "-dp" says, "set up jump tables for calls into shared libraries", which is also
  28. always done in HP-UX.
  29.  
  30. "-X" says, "leave in local symbols other than the compiler generated ones".
  31. This is always done by HP-UX, unless you use "-x", which the compilers
  32. generally do.
  33.  
  34. The real question is, why are they calling "ld" directly?  It is bound to lead
  35. to these sort of portability problems.  Just use:
  36.  
  37. cc $(COBJS) $(CLIBS)
  38.  
  39. on both architectures; "cc" always knows how to call "ld" correctly.  You may
  40. want to remove "-lc" from $(CLIBS) if present.  If not present, that could be
  41. why they were calling "ld" directly - "cc" normally adds it.
  42.  
  43. If for some reason you really must call "ld" directly, you will also have to
  44. change /usr/lib/crt0.o to /lib/crt0.o
  45.  
  46. --------------
  47. Marc Sabatella (marc@hpmonk.fc.hp.com)
  48. Disclaimers:
  49.     2 + 2 = 3, for suitably small values of 2
  50.     Bill (H.) and Dave (P.) may not always agree with me
  51.