[PATCH 00/10] Misc patches
Simon Ruderich
simon at ruderich.org
Wed Feb 5 15:21:46 CET 2014
On Tue, Feb 04, 2014 at 05:22:50PM +0100, Thorsten Wißmann wrote:
> Out of these 10 patches, I merged these 7 by fair dice roll^W^W^W^Wfor
> the following reasons:
Hi Thorsten,
Thanks for merging the patches so quickly.
> - f64e7a5 Makefile: Use $(CFLAGS) when linking.
> => Did not know that, is that the normal usage of CLFAGS? Christoph?
Yes, it is.
Compiling: CPPFLAGS + CFLAGS
Linking: CFLAGS + LDFLAGS
GNU autotools handles it in the same way.
See also the gcc man page regarding -flto:
Additionally, the optimization flags used to compile
individual files are not necessarily related to those used at
link time. For instance,
gcc -c -O0 -flto foo.c
gcc -c -O0 -flto bar.c
gcc -o myprog -flto -O3 foo.o bar.o
This produces individual object files with unoptimized
assembler code, but the resulting binary myprog is optimized
at -O3. If, instead, the final binary is generated without
-flto, then myprog is not optimized.
Therefore CFLAGS is required while linking.
Regards
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20140205/d4b30b20/attachment.asc>
More information about the hlwm
mailing list