diff options
Diffstat (limited to 'content/cross-gcc-initial-3.3.1.oe')
-rw-r--r-- | content/cross-gcc-initial-3.3.1.oe | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/content/cross-gcc-initial-3.3.1.oe b/content/cross-gcc-initial-3.3.1.oe index e69de29bb2..573410ee30 100644 --- a/content/cross-gcc-initial-3.3.1.oe +++ b/content/cross-gcc-initial-3.3.1.oe @@ -0,0 +1,16 @@ +include cross-gcc-${PV}.oe +PN:=${PN}-initial + +EXTRA_OECONF = --oldincludedir=${prefix}/include --enable-shared \ + --enable-languages=c \ + --disable-shared \ + --disable-threads + +do_configure_append () { + if (grep -q TARGET_LIBGCC2_CFLAGS ${tmake_file}); then + perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$$1 -Dinhibit_libc -D__gthr_posix_h/' ${tmake_file} + else + echo 'TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file} + fi + echo 'T_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file} +} |