1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-11 20:40:15 +02:00

add a configuration option to enable full c99 math in libm. this is needed for functions like floorf (which happens to be used in postgresql server as an example)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5302 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov 2006-10-26 17:16:13 +00:00
parent 93b646c8f5
commit 95423fe02e
2 changed files with 11 additions and 1 deletions

View File

@ -28,6 +28,13 @@ config LARGEFILE
help
Enable large file (files > 2 GB) support
config C99_MATH
bool
prompt "Enable full C99 math support?" if TOOLCHAINOPTS
default n
help
Enable if you need full C99 math in libm
config SOFT_FLOAT
bool
prompt "Use software floating point by default" if TOOLCHAINOPTS

View File

@ -51,6 +51,9 @@ endif
$(SED) 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(PKG_BUILD_DIR)/.config
ifeq ($(CONFIG_SOFT_FLOAT),y)
$(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' $(PKG_BUILD_DIR)/.config
endif
ifeq ($(CONFIG_C99_MATH),y)
$(SED) 's,.*DO_C99_MATH.*,DO_C99_MATH=y,g' $(PKG_BUILD_DIR)/.config
endif
mkdir -p $(TOOLCHAIN_BUILD_DIR)/uClibc_dev/usr/include
mkdir -p $(TOOLCHAIN_BUILD_DIR)/uClibc_dev/usr/lib