merge of '0b604857bbf871639fdb43ee8380222e8ef64bb7'
[vuplus_openembedded] / conf / distro / include / angstrom-uclinux-uclibc.inc
1 # uclibc:
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"
6
7 USE_NLS ?= "no"
8 USE_NLS_glib-2.0 = "yes"
9
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']]}"
11
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"
16
17 #Gcc will die with 'internal consistency error when using the above optimizations
18 FULL_OPTIMIZATION_avr32 = ""
19 BUILD_OPTIMIZATION_avr32 = ""
20
21 CXXFLAGS += "-fvisibility-inlines-hidden"
22