diff options
author | Tim Yardley <lst@openwrt.org> | 2006-10-26 17:16:13 +0000 |
---|---|---|
committer | Tim Yardley <lst@openwrt.org> | 2006-10-26 17:16:13 +0000 |
commit | df8db85071ae3ba983ccfcdd2a884ef4413e8270 (patch) | |
tree | 19ef8485480206dff6b815af265b86a0b2c18902 /toolchain | |
parent | ad6d1b5f97efcc2267a546a4188b977655a55345 (diff) | |
download | upstream-df8db85071ae3ba983ccfcdd2a884ef4413e8270.tar.gz upstream-df8db85071ae3ba983ccfcdd2a884ef4413e8270.tar.bz2 upstream-df8db85071ae3ba983ccfcdd2a884ef4413e8270.zip |
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
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/Config.in | 9 | ||||
-rw-r--r-- | toolchain/uClibc/Makefile | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/toolchain/Config.in b/toolchain/Config.in index 7b0a0aaeee..e89cdf6345 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -26,7 +26,14 @@ config LARGEFILE depends on !cris default y help - Enable large file (files > 2 GB) support + 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 diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile index b640405ddc..7fdba8aded 100644 --- a/toolchain/uClibc/Makefile +++ b/toolchain/uClibc/Makefile @@ -52,6 +52,9 @@ endif 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 mkdir -p $(TOOLCHAIN_BUILD_DIR)/uClibc_dev/lib |