Re: [AD] Makefile flags override patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
allegrovp@xxxxxxxxxx wrote:
Basically, it allows one to type:
make CFLAGS=-pipe
or whatever other flags one may want.
I believe this is what configure is for. I've seen configure scripts
that selectively remove certain (or completely ignore) user-specified
flags, and mix in its own.
Anyway, there is currently a way to add CFLAGS, though it's kid of a
hack... use the CPU_ARCH/EXCL_ARCH (or whatever the vars are for -mcpu
and -march) and add them to the end of that. For example, using the
configure script:
./configure --enable-exclopts="k6-2 -mmmx"
and I get these CFLAGS: -march=k6-2 -mmmx -O2 etcetc...
I'm personally not too keen on modifying optimization flags because if
you try to increase optimization, you risk breaking something (this can
become quite apparent between -O2 and -O3). Properly made configure
scripts can weed out bad options though, and I would recommend that if
anything.
- Kitty Cat