libDaisy compile option

Hi,

Is there a way to pass/overload a compile option in commandline when building the libDaisy ?

My use case : I’ve got a project that is just a little bit more than the size of the flash
On other projects I use the bootloader, but it has a few drawbacks that ideally I want to avoid.
I’ve already reduced the size of my own program as far as I could.
On this project, I found that if I edit libDaisy’s makefile and replace the optimization for speed by an optimization for size (replace -O3 by -Os) the resulting binary fits in the flash memory. Also my tests didn’t reveal any performance issue for this specific use case.
Great !
But to save this in my sources would need me to fork the lib and maintain the fork, which is a bit overkill for a 1 char change. Having modified dependencies without any clean way to store the mods is bad practice and can lead to some future issues.
So is there an option that I’ve missed to pass “-Os” as a cli option to the make command ?
Is there any other/cleaner way to handle this ?

Thanks

try and see if this works:

make OPT=-Os

Works like a charm !
I was pretty sure that it was the 1st thing I tested, guess I must’ve done something wrong.
Thanks