home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20612 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!world!jrs
  3. From: jrs@world.std.com (Rick Sladkey)
  4. Subject: does your make read archives properly?
  5. Message-ID: <JRS.92Dec16011826@lepton.world.std.com>
  6. Sender: jrs@world.std.com (Rick Sladkey)
  7. Organization: The Internet
  8. Date: Wed, 16 Dec 1992 06:18:26 GMT
  9. Lines: 40
  10.  
  11. GNU make, like most makes, has builtin facilities for handling object
  12. files inside of archives.  However I discovered that my own compiled
  13. version didn't handle them properly.  If you use this feature, you may
  14. want to verify that it works correctly by trying this experiment.
  15.  
  16. $ mkdir test
  17. $ cd test
  18. $ touch test.o
  19. $ ar cr libtest.a test.o
  20. $ touch test.o
  21. $ make -t 'libtest.a(test.o)'
  22.  
  23. If it says something like: "archive has no member named test.o" then
  24. your make is broken with respect to archives.
  25.  
  26. To fix this, notify your binary provider or recompile make yourself
  27. with this patch.
  28. -----
  29. *** arscan.c.orig    Wed Dec 16 01:12:48 1992
  30. --- arscan.c    Tue Dec 15 20:16:55 1992
  31. ***************
  32. *** 81,87 ****
  33.   
  34.   
  35.   #ifndef    AIAMAG
  36. ! #if    (defined(APOLLO) || defined(HPUX) || defined(hpux) || \
  37.        (PORTAR == 1 && (defined(USGr3) || defined(u3b2) || defined(sun386))))
  38.   #define    AR_NAMELEN    14
  39.   #define    AR_TRAILING_SLASH    /* Member names have a trailing slash.  */
  40. --- 81,87 ----
  41.   
  42.   
  43.   #ifndef    AIAMAG
  44. ! #if    (defined(linux) || defined(APOLLO) || defined(HPUX) || defined(hpux) || \
  45.        (PORTAR == 1 && (defined(USGr3) || defined(u3b2) || defined(sun386))))
  46.   #define    AR_NAMELEN    14
  47.   #define    AR_TRAILING_SLASH    /* Member names have a trailing slash.  */
  48. --
  49. Rick Sladkey
  50. jrs@world.std.com
  51.