I guess your solution (and Fakeconfig from Anonymous) will eliminate the pain to clean the config string in an m4 macro (as I am using Gnu Autotools to generate the Makefile for the project). Of course I do not know what I want, I know what I do not want! I do not want "-O*", so I will filter that out inside the Perl one liner calling Config to tell me the CFLAGS. Thanks for the idea.
I have updated my question so as mention an m4 macro which can be used by Autotools to get CFLAGS when compiling C programs having an embeded Perl.
In reply to Re^2: Config sets optimisation compilation flags (-O/-g)!
by bliako
in thread Config sets optimisation compilation flags (-O/-g)!
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |