[Buildroot] [PATCHv2] package: add the poco C++ libraries collection
Baruch Siach
baruch at tkos.co.il
Sun Oct 2 06:41:07 UTC 2011
Hi Peter,
On Tue, Sep 27, 2011 at 09:19:01PM +0200, Peter Korsgaard wrote:
> >>>>> "Baruch" == Baruch Siach <baruch at tkos.co.il> writes:
> Baruch> Well, it seems that the Poco configure script can do just that
> Baruch> when told to. The --no-fpenvironment option replaces
> Baruch> FPEnvironment_C99.h with FPEnvironment_DUMMY.h. You can even
> Baruch> pass --no-wstring to disable std::wstring support. So the
> Baruch> question is, is there a way to detect the 'defined(__UCLIBC__)
> Baruch> && !defined (__UCLIBC_HAS_FENV__)' condition at configuration
> Baruch> time? This seems to be much cleaner than patching the code for
> Baruch> build time detection.
>
> Ahh ok, good. As far as I can see, the uClibc fenv support is not really
> extensive enough to ever work, so simply detecting uClibc should be
> enough. Remember we can use uClibc through
> internal/external/crosstool-ng toolchains, so you'll need to do
> something like
>
> ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y)
> POCO_CONF_OPT += --no-fpenvironment
> endif
Can't we just use $(LIBC) that is set in package/Makefile.in? Hence:
ifeq ($(LIBC),uclibc)
POCO_CONF_OPT += --no-fpenvironment
endif
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the buildroot
mailing list