From b981d7a8324fbe570cebfc32baabf83713d9439c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 28 Feb 2019 13:39:21 +0100 Subject: [PATCH] Complete support for OBJDIR with libtool --- src/makefile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index c89212d..da17c50 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -1814,7 +1814,8 @@ static int _target_source(Makefile * makefile, String const * target, _makefile_print(makefile, "%s%s%s", "\n$(OBJDIR)", source, ".o"); if(tt == TT_LIBTOOL) - _makefile_print(makefile, " %s.lo", source); + _makefile_print(makefile, " $(OBJDIR)%s.lo", + source); _makefile_print(makefile, "%s%s%s%s", ": ", source, ".", extension); source[len] = '.'; /* FIXME ugly */ @@ -1878,7 +1879,7 @@ static int _target_source(Makefile * makefile, String const * target, } if(tt == TT_LIBTOOL) { - _makefile_print(makefile, " "); + _makefile_print(makefile, " $(OBJDIR)"); _makefile_print_escape(makefile, source); _makefile_print(makefile, "%s", ".lo"); }