On Sat, Nov 20, 2010 at 20:33, Nerius Landys <[email protected]> wrote:
> One question.  I actually ended up editing Makefile to temporarily add:
>
>  --- Makefile    (revision 1802)
> +++ Makefile    (working copy)
> @@ -258,7 +258,7 @@
>    endif
>
>    BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
> -    -pipe -DUSE_ICON
> +    -pipe -DUSE_ICON -D_FORTIFY_SOURCE=1
>    CLIENT_CFLAGS = $(SDL_CFLAGS)
>    SERVER_CFLAGS =
>
>
> Is there any better way to do this?  I tried environment variables and
> Makefile.local, but that didn't work.  I am kind of new to Makefile and C
> programming; I come from a Java background (and I'm ashamed to say it).

No need, nothing wrong with Java.

CFLAGS=-D_FORTIFY_SOURCE=1 in your Makefile.local should work (does
for me) but you can also pass it as an argument to make:

  make CFLAGS=-D_FORTIFY_SOURCE=1
_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to