Skip to contentSkip to conversation

CFLAGS_append_arm = " -fforward-propagate " breaks sdk builds

DISCUSSION Koen Kooi 2 participants 2 messages Jun 30, 2010 – Jul 1, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

When using an old compiler (e.g. the one ubuntu 8.04LTS ships with), zlib and ncurses fail to build because " -fforward-propagate" is not recognized as an option.

This is due to:

CFLAGS_append_arm = " -fforward-propagate "

In the .inc files. My question: why does ncursus-sdk get that in cflags?!?!

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMKwS5MkyGM64RGpERAkrUAJ9/6f9Xwfq31TooCkrx39tuOO+twACfeLGb d7VMZZJgobUiZgNM1rfrLv8=
=t8GK
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 9 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

When using an old compiler (e.g. the one ubuntu 8.04LTS ships with), zlib and ncurses fail to build because " -fforward-propagate" is not recognized as an option.

I wonder if there is a way to make OE aware of what gcc/binutils or other cross tools versions it is being compiled with and then decide on options based on that.
we could poke cross compiler on the fly
something like.

check_gcc=$(shell \
        if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1;
\
        then echo "$(1)"; else echo "$(2)"; fi)
Quoted 5 lines

This is due to:

CFLAGS_append_arm = " -fforward-propagate "

In the .inc files. My question: why does ncursus-sdk get that in cflags?!?!

its using BBLASSEXTEND now for sdk may be it uses TARGET_ARCH in overrides.

Quoted 18 lines

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMKwS5MkyGM64RGpERAkrUAJ9/6f9Xwfq31TooCkrx39tuOO+twACfeLGb d7VMZZJgobUiZgNM1rfrLv8=
=t8GK
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel