On Mon, 2017-04-17 at 20:24 +0200, zosrothko wrote: > Le 17/04/2017 à 19:07, Toan Pham a écrit : > > @Paul, thank you and have a good day. > > > > On Apr 17, 2017 10:04 AM, "Paul Smith" <psm...@gnu.org> wrote: > > > On Mon, 2017-04-17 at 10:00 -0400, Toan Pham wrote: > > > > What is the best way to override the default compiler? is this good > > > > practice: > > > > > > > > CXX:=$(CROSS_COMPILE)$(CXX) > > > > > > That's the way I would do it, yes. > > > > Ok, but that does not work for 'ranlib' & 'strip' which are also > needed for cross compiling
That's because there is no ranlib or strip available in the default set of variables provided by make: $ make -pf/dev/null | grep -i ranlib make: *** No targets. Stop. $ make -pf/dev/null | grep -i strip make: *** No targets. Stop. You'll have to define them yourself, as in: RANLIB := $(CROSS_COMPILE)ranlib STRIP := $(CROSS_COMPILE)strip or whatever. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make