2 #fix some iconv issues, needs to be adjusted when doing uclibc builds
3 PREFERRED_PROVIDER_virtual/libc = "uclibc"
4 PREFERRED_PROVIDER_virtual/libiconv ?= "libiconv"
5 PREFERRED_PROVIDER_virtual/libintl ?= "gettext"
8 USE_NLS_glib-2.0 = "yes"
10 TARGET_OS_UC = "uclinux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"
12 #mess with compiler flags to use -Os instead of -O2
13 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info
14 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
15 BUILD_OPTIMIZATION = "-Os"
17 #Gcc will die with 'internal consistency error when using the above optimizations
18 FULL_OPTIMIZATION_avr32 = ""
19 BUILD_OPTIMIZATION_avr32 = ""
21 CXXFLAGS += "-fvisibility-inlines-hidden"