From b861ff6af53794a62efe774645db8feb895a2edd Mon Sep 17 00:00:00 2001 From: Ilia Sotnikov Date: Tue, 12 Jun 2007 06:38:58 +0000 Subject: [PATCH] + Use libtool instead of ar/ranlib, which correctly handles dependencies (eg. for parallel makes) --- lib/Makefile.in | 5 ++--- sanei/Makefile.in | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Makefile.in b/lib/Makefile.in index 32769b224..c73e54ea4 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -69,9 +69,8 @@ DISTFILES = Makefile.in alloca.c getenv.c getopt.c getopt1.c \ all: $(TARGETS) -liblib.a: $(LIBLIB_OBJS) - ar r $@ $(LIBLIB_OBJS) - $(RANLIB) $@ +liblib.a: $(LIBLIB_LTOBJS) + @$(LIBTOOL) $(MLINK) $(CC) $(LIBLIB_LTOBJS) -o $@ install: diff --git a/sanei/Makefile.in b/sanei/Makefile.in index ded985c11..47eb8b160 100644 --- a/sanei/Makefile.in +++ b/sanei/Makefile.in @@ -85,9 +85,8 @@ DISTFILES = Makefile.in linux_sg3_err.h os2_srb.h sanei_DomainOS.c \ all: $(TARGETS) -libsanei.a: $(LIBSANEI_OBJS) - ar r $@ $(LIBSANEI_OBJS) - $(RANLIB) $@ +libsanei.a: $(LIBSANEI_LTOBJS) + $(LIBTOOL) $(MLINK) $(CC) $(LIBSANEI_LTOBJS) -o $@ install: