From fbae3e1b4094a59683c911d75a66c4dd9195c2ed Mon Sep 17 00:00:00 2001 From: Ilia Sotnikov Date: Mon, 2 Jul 2007 17:21:24 +0000 Subject: [PATCH] * Fixed empty liblib.a, libsanei.a produced by libtool - '-static' flag is now mentioned in both compile & link stages to tell 'libtool' that static library is being built (static libraries are disabled by default when configure produces libtool from ltmain.sh). --- lib/Makefile.in | 4 ++-- sanei/Makefile.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Makefile.in b/lib/Makefile.in index c73e54ea4..99077abd3 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -65,12 +65,12 @@ DISTFILES = Makefile.in alloca.c getenv.c getopt.c getopt1.c \ $(COMPILE) $< .c.lo: - @$(LIBTOOL) $(MCOMP) $(COMPILE) $< + @$(LIBTOOL) $(MCOMP) $(COMPILE) -static $< all: $(TARGETS) liblib.a: $(LIBLIB_LTOBJS) - @$(LIBTOOL) $(MLINK) $(CC) $(LIBLIB_LTOBJS) -o $@ + @$(LIBTOOL) $(MLINK) $(CC) -static $(LIBLIB_LTOBJS) -o $@ install: diff --git a/sanei/Makefile.in b/sanei/Makefile.in index 47eb8b160..52fe658ad 100644 --- a/sanei/Makefile.in +++ b/sanei/Makefile.in @@ -81,12 +81,12 @@ DISTFILES = Makefile.in linux_sg3_err.h os2_srb.h sanei_DomainOS.c \ $(COMPILE) $< .c.lo: - @$(LIBTOOL) $(MCOMP) $(COMPILE) $< + @$(LIBTOOL) $(MCOMP) $(COMPILE) -static $< all: $(TARGETS) libsanei.a: $(LIBSANEI_LTOBJS) - $(LIBTOOL) $(MLINK) $(CC) $(LIBSANEI_LTOBJS) -o $@ + @$(LIBTOOL) $(MLINK) $(CC) -static $(LIBSANEI_LTOBJS) -o $@ install: