Re: [Chicken-users] How to I add (not override) compiler options/flags ?
On Sun, Mar 24, 2019 at 11:18:48AM +0100, ko...@upyum.com wrote: > Jeronimo Pellegrini wrote: > > But since C_COMPILER_OPTIONS is defined with ?=, if I set it > > when running make, the default in Makefile.linux, for example, > > would be ignored. > > > > So if I use a script that wants to *add* flags, how should I do that? > > (I see that CFLAGS is not used). > > Hmm, this indeed doesn’t appear to be possible. > > Maybe you could use C_COMPILER_OPTIMIZATION_OPTIONS ? This seems to work! I can set C_COMPILER_OPTIMIZATION_OPTIONS to CFLAGS before calling make, and compilation goes as intended. Thank you! J. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] How to I add (not override) compiler options/flags ?
Jeronimo Pellegrini wrote: > But since C_COMPILER_OPTIONS is defined with ?=, if I set it > when running make, the default in Makefile.linux, for example, > would be ignored. > > So if I use a script that wants to *add* flags, how should I do that? > (I see that CFLAGS is not used). Hmm, this indeed doesn’t appear to be possible. Maybe you could use C_COMPILER_OPTIMIZATION_OPTIONS ? ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] How to I add (not override) compiler options/flags ?
Hello, Reading the Chicken makefiles, I noticed that if I set C_COMPILER_OPTIONS, it will be used and the default value will be discarded, since it is set with ?= in the makefiles. C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H TARGET_C_COMPILER_OPTIONS ?= $(C_COMPILER_OPTIONS) But since C_COMPILER_OPTIONS is defined with ?=, if I set it when running make, the default in Makefile.linux, for example, would be ignored. So if I use a script that wants to *add* flags, how should I do that? (I see that CFLAGS is not used). Thanks, J. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users