e8011a08b6
ace needs C++11 since its addition in commit
3621918d1b
to avoid the following build
failure:
In file included from /home/peko/autobuild/instance-1/output-1/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/chrono:35:0,
from /home/peko/autobuild/instance-1/output-1/build/ace-7.0.1/ace/Time_Value.h:23,
from /home/peko/autobuild/instance-1/output-1/build/ace-7.0.1/ace/OS_NS_unistd.h:25,
from /home/peko/autobuild/instance-1/output-1/build/ace-7.0.1/ace/ACE.inl:2,
from /home/peko/autobuild/instance-1/output-1/build/ace-7.0.1/ace/ACE.h:886,
from /home/peko/autobuild/instance-1/output-1/build/ace-7.0.1/ace/ACE.cpp:1:
/home/peko/autobuild/instance-1/output-1/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
Fixes:
- http://autobuild.buildroot.org/results/13376405e313da112f546076a10859e60631d5d5
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# ace
|
|
#
|
|
################################################################################
|
|
|
|
ACE_VERSION = 7.0.1
|
|
ACE_SOURCE = ACE-$(ACE_VERSION).tar.gz
|
|
ACE_SITE = http://download.dre.vanderbilt.edu/previous_versions
|
|
ACE_LICENSE = DOC
|
|
ACE_LICENSE_FILES = COPYING
|
|
ACE_INSTALL_STAGING = YES
|
|
ACE_CPE_ID_VENDOR = vanderbilt
|
|
ACE_CPE_ID_PRODUCT = adaptive_communication_environment
|
|
|
|
# Note: We are excluding examples, apps and tests
|
|
# Only compiling ACE libraries (no TAO)
|
|
ACE_LIBARIES = ace ACEXML Kokyu netsvcs protocols/ace
|
|
|
|
ACE_MAKE_OPTS = \
|
|
ACE_ROOT="$(@D)" \
|
|
DEFFLAGS="$(TARGET_CPPFLAGS) -std=c++11"
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
ACE_LIBARIES += ace/SSL
|
|
ACE_DEPENDENCIES += openssl
|
|
define ACE_CONFIGURE_SSL
|
|
echo "ssl = 1" >> $(@D)/include/makeinclude/platform_macros.GNU
|
|
endef
|
|
endif
|
|
|
|
# configure the target build
|
|
# refer: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
|
|
define ACE_CONFIGURE_CMDS
|
|
# create a config file
|
|
echo ' #include "ace/config-linux.h" ' >> $(@D)/ace/config.h
|
|
|
|
# Create platform/compiler-specific Makefile configurations
|
|
$(INSTALL) -m 0644 package/ace/platform_macros.GNU $(@D)/include/makeinclude/
|
|
|
|
$(ACE_CONFIGURE_SSL)
|
|
endef
|
|
|
|
define ACE_BUILD_CMDS
|
|
$(foreach lib,$(ACE_LIBARIES), \
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$(lib) \
|
|
$(ACE_MAKE_OPTS) all
|
|
)
|
|
endef
|
|
|
|
define ACE_LIBARIES_INSTALL
|
|
mkdir -p $(1)/usr/share/ace
|
|
$(foreach lib,$(ACE_LIBARIES), \
|
|
$(MAKE) -C $(@D)/$(lib) $(ACE_MAKE_OPTS) DESTDIR=$(1) install
|
|
)
|
|
endef
|
|
|
|
define ACE_INSTALL_TARGET_CMDS
|
|
$(call ACE_LIBARIES_INSTALL,$(TARGET_DIR))
|
|
endef
|
|
|
|
define ACE_INSTALL_STAGING_CMDS
|
|
$(call ACE_LIBARIES_INSTALL,$(STAGING_DIR))
|
|
endef
|
|
|
|
$(eval $(generic-package))
|