home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text4652.txt < prev    next >
Encoding:
Internet Message Format  |  1996-03-31  |  3.1 KB

  1. Received: from NMSU.Edu (dns1.NMSU.Edu [128.123.3.5]) by nacm.com (8.6.10/8.6.9) with ESMTP id OAA25918 for <executor@nacm.com>; Thu, 7 Sep 1995 14:32:37 -0700
  2. From: jowaters@NMSU.Edu
  3. Received: from ccserver by NMSU.Edu (8.6.10/NMSU-1.18)
  4.     id PAA14123; Thu, 7 Sep 1995 15:32:17 -0600
  5. Date: Thu, 7 Sep 1995 15:32:16 -0600
  6. Message-Id: <199509072132.PAA14123@NMSU.Edu>
  7. Received: by ccserver (4.1/NMSU)
  8.     id AA09847; Thu, 7 Sep 95 15:32:14 MDT
  9. To: executor@nacm.com
  10. In-Reply-To: Jeffrey A Halverson's message of Thu, 7 Sep 1995 13:27:00 -0500 (CDT) <Pine.3.89.9509071353.A15878-0100000@gold.tc.umn.edu>
  11. Subject: Svga & Linux
  12. Sender: owner-paper@nacm.com
  13. Precedence: bulk
  14.  
  15. ARDI: I apologize for posting this to this list.  But there have now been 8
  16. or more messages about people who want elf libraries under linux, so I figured
  17. I'd better explain this.
  18.  
  19. Linux users: quick doc on elf.  If you don't run linux, I suggest you
  20. delete this message, as it's long and awful boring.
  21.  
  22. First, at least so far, ARDI hasn't released an ELF-linked binary.  So you
  23. _shouldn't_ have to worry about it at all.  Apparently that's not the case.
  24. Anyway, if ardi releases an a.out binary, you should use an a.out library.
  25. If ardi releases an elf binary, you should then use an elf version of
  26. svgalib.
  27.  
  28. So for now: compile svgalib-1.2.7 as a.out.  The instructions say how.  They
  29. are very straight-foreward.  svgalib-1.2.7 even comes with a pre-compiled
  30. a.out library.  This should work fine with executor.
  31.  
  32. Next: people have been asking about compiling things in a.out format.  If
  33. you have a machine with elf libraries on it, the default is for gcc to use
  34. elf, not a.out format.  To get a.out format, you need to do:
  35.  
  36. gcc -b i486-linuxaout filename blah blah blah
  37.  
  38. *AND*.  This is an important and.  If you are linking libraries or have a 
  39. makefile that uses "ld", then you also need to change ld commands to:
  40.  
  41. ld -m i386linux blah blah blah
  42.  
  43. NOTE that is not a typo.  It really is "i386linux" with a "3".  I don't know
  44. why.  Ask HLU.
  45.  
  46. Now, if you have a.out and elf libraries, you might want to keep them BOTH,
  47. as programs will eventually start being distributed under both formats (like
  48. X11 programs are -- doom and abuse are both in a.out format).  Do the same
  49. thing that the DOCUMENTATION said to do for your X distribution.  That is,
  50. go into /lib and make a directory called "aout" for all of your old aout
  51. libraries.  Throw your svgalib-1.2.7 aout version into this directory.  Add
  52. an entry for that directory in /etc/ld.so.conf.  
  53. Put your ELF library into /lib.  THen run "ldconfig".  Everything should
  54. straighten itself out: programs linked against a.out svgalib will use 
  55. /lib/aout/svgalib-1.2.7, while elf-linked binaries will use 
  56. /lub/svgalib-1.2.7.
  57.  
  58. Last note. Many people have written here that they expected the linux 
  59. elf svgalibs to magically teleport and install themselves correctly
  60. when they compiled them.  The DOCUMENTATION says that this is not the
  61. case, and installation needs to be done manually.  So when you make your
  62. svgalib and svgagl stuff in elf format, you need to manually copy them
  63.