On Sat, Jul 14, 2012 at 09:47:03AM +1000, AnĂ­bal Monsalve Salazar wrote:
> Everything in nasm is C. Why do I need $CPPFLAGS?

Because $CPPFLAGS are not flags for C++ files (CXXFLAGS are for
C++ files), but flags for the preprocessor (cpp).

Compiling a normal C file needs $CPPFLAGS and $CFLAGS, linking a
C object file needs $CFLAGS and $LDFLAGS ($CFLAGS because some
linker options can create code which then uses $CFLAGS).

> dpkg -l nasm | grep ^ii
> ii  nasm  2.10.01-1  General-purpose x86 assembler
>
> hardening-check /usr/bin/nasm
> /usr/bin/nasm:
>  Position Independent Executable: no, normal executable!
>  Stack protected: yes
>  Fortify Source functions: no, only unprotected functions found!
                             ^^
>  Read-only relocations: yes
>  Immediate binding: no, not found!

Fortify Source functions are missing because the $CPPFLAGS are
not passed to gcc.

Regards,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Attachment: pgpAYihpNA5Tv.pgp
Description: PGP signature

Reply via email to