home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!world!jrs
- From: jrs@world.std.com (Rick Sladkey)
- Subject: does your make read archives properly?
- Message-ID: <JRS.92Dec16011826@lepton.world.std.com>
- Sender: jrs@world.std.com (Rick Sladkey)
- Organization: The Internet
- Date: Wed, 16 Dec 1992 06:18:26 GMT
- Lines: 40
-
- GNU make, like most makes, has builtin facilities for handling object
- files inside of archives. However I discovered that my own compiled
- version didn't handle them properly. If you use this feature, you may
- want to verify that it works correctly by trying this experiment.
-
- $ mkdir test
- $ cd test
- $ touch test.o
- $ ar cr libtest.a test.o
- $ touch test.o
- $ make -t 'libtest.a(test.o)'
-
- If it says something like: "archive has no member named test.o" then
- your make is broken with respect to archives.
-
- To fix this, notify your binary provider or recompile make yourself
- with this patch.
- -----
- *** arscan.c.orig Wed Dec 16 01:12:48 1992
- --- arscan.c Tue Dec 15 20:16:55 1992
- ***************
- *** 81,87 ****
-
-
- #ifndef AIAMAG
- ! #if (defined(APOLLO) || defined(HPUX) || defined(hpux) || \
- (PORTAR == 1 && (defined(USGr3) || defined(u3b2) || defined(sun386))))
- #define AR_NAMELEN 14
- #define AR_TRAILING_SLASH /* Member names have a trailing slash. */
- --- 81,87 ----
-
-
- #ifndef AIAMAG
- ! #if (defined(linux) || defined(APOLLO) || defined(HPUX) || defined(hpux) || \
- (PORTAR == 1 && (defined(USGr3) || defined(u3b2) || defined(sun386))))
- #define AR_NAMELEN 14
- #define AR_TRAILING_SLASH /* Member names have a trailing slash. */
- --
- Rick Sladkey
- jrs@world.std.com
-