From 371b3ecea3edad66090a1951244129f161359ffe Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 14 Feb 2019 18:57:17 +0100 Subject: [PATCH] Add libtool support for C++ objects --- src/makefile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/makefile.c b/src/makefile.c index 46ccea7..e9f85d2 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -1883,6 +1883,9 @@ static int _target_source(Makefile * makefile, _makefile_print(makefile, "%s", "\n\t"); if(strchr(source, '/') != NULL) ret = _source_subdir(makefile, source); + if(tt == TT_LIBTOOL) + _makefile_print(makefile, "%s", + "$(LIBTOOL) --mode=compile "); _makefile_print(makefile, "%s%s%s", "$(CXX) $(", target, "_CXXFLAGS)"); if(p != NULL)