Re: Re: Re: [AD] Makefile flags override patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


And here is some notes for the CFLAGS/LDFLAGS override:

--- unix.txt.makeflags  Sat Jul 17 12:11:00 2004
+++ unix.txt    Sat Jul 17 12:18:20 2004
@@ -105,6 +105,19 @@
       autoheader
       autoconf

+   It is possible to add compilation and link flags to the make command line.
+   This is done by passing the CFLAGS and/or LDFLAGS to make, with the flags
+   you want. This is meant as a generic customization ability, so that you
+   should really use configure flags if possible. Note that any flags you
+   pass using the make command line are transient: they will only apply to
+   whatever compilation and link happen to be spawned by this particular
+   invokation of make.
+   When you pass CFLAGS and/or LDFLAGS to the make command line, Allegro's
+   build system will use these as a starting point, and will add its own
+   flags to those. This means that you should be aware that flags you pass
+   this way may be overridden. For this reason, it is best to only use this
+   to specify flags that do not interfere with the code generation. Useful
+   flags to pass are -save-temps, or -pipe.


 =======================================


Vincent






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/