Re: [hackers] [libgrapheme] Explicitly use object-files in library-generation || Laslo Hunhold

From: Laslo Hunhold <dev_AT_frign.de>
Date: Fri, 24 Jun 2022 12:08:51 +0200

On Fri, 24 Jun 2022 11:51:51 +0200
Quentin Rameau <quinq_AT_fifth.space> wrote:

Dear Quentin,

> > libgrapheme.a: $(SRC:=.o)
> > - $(AR) rc $_AT_ $?
> > + $(AR) rc $_AT_ $(SRC:=.o)
> > $(RANLIB) $_AT_
>
> This works as intended with $?, because then you only update objects
> that are out of date, not *all* objects inconditionally (just note
> that you might want the -u flag too).

today I learned, thank you! :)

I pushed the change, but kept out the -u flag, as it's a bit redundant
and might lead to unexpected results when you override something in
make. Please let me know if I'm missing something there.

With best regards

Laslo
Received on Fri Jun 24 2022 - 12:08:51 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 24 2022 - 12:12:29 CEST