* [Buildroot] [PATCH] cppcms: fix build with ICU
@ 2017-07-22 20:24 Thomas Petazzoni
2017-07-22 20:37 ` Arnout Vandecappelle
2017-07-22 20:41 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-07-22 20:24 UTC (permalink / raw)
To: buildroot
Since the bump of ICU to 59.1, it needs C++11. cppcms has been updated
with the appropriate dependency on gcc >= 4.8, but it also needs
-std=c++11. Therefore, this patch complements the CXXFLAGS passed to
cppcms by adding what icu-config reports, in a manner similar to what
was done to fix the same issue in the PHP package in commit
214a76d045f906c1a8d687b7c7e7bc85c5b09906 ("package/php: fix icu
support").
Fixes:
http://autobuild.buildroot.net/results/f05d9999f1f3248b6a50f14de476108028ed047e/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/cppcms/cppcms.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/cppcms/cppcms.mk b/package/cppcms/cppcms.mk
index 4b4a2c6..e72acb2 100644
--- a/package/cppcms/cppcms.mk
+++ b/package/cppcms/cppcms.mk
@@ -10,16 +10,20 @@ CPPCMS_LICENSE = LGPL-3.0
CPPCMS_LICENSE_FILES = COPYING.TXT
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
CPPCMS_INSTALL_STAGING = YES
+CPPCMS_CXXFLAGS = $(TARGET_CXXFLAGS)
# disable rpath to avoid getting /usr/lib added to the link search
# path
-CPPCMS_CONF_OPTS = -DCMAKE_SKIP_RPATH=ON
+CPPCMS_CONF_OPTS = \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)"
CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
CPPCMS_DEPENDENCIES += icu
+CPPCMS_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
endif
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
--
2.9.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] cppcms: fix build with ICU
2017-07-22 20:24 [Buildroot] [PATCH] cppcms: fix build with ICU Thomas Petazzoni
@ 2017-07-22 20:37 ` Arnout Vandecappelle
2017-07-22 20:41 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2017-07-22 20:37 UTC (permalink / raw)
To: buildroot
On 22-07-17 22:24, Thomas Petazzoni wrote:
> Since the bump of ICU to 59.1, it needs C++11. cppcms has been updated
> with the appropriate dependency on gcc >= 4.8, but it also needs
> -std=c++11. Therefore, this patch complements the CXXFLAGS passed to
> cppcms by adding what icu-config reports, in a manner similar to what
> was done to fix the same issue in the PHP package in commit
> 214a76d045f906c1a8d687b7c7e7bc85c5b09906 ("package/php: fix icu
> support").
>
> Fixes:
>
> http://autobuild.buildroot.net/results/f05d9999f1f3248b6a50f14de476108028ed047e/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Regards,
Arnout
> ---
> package/cppcms/cppcms.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/package/cppcms/cppcms.mk b/package/cppcms/cppcms.mk
> index 4b4a2c6..e72acb2 100644
> --- a/package/cppcms/cppcms.mk
> +++ b/package/cppcms/cppcms.mk
> @@ -10,16 +10,20 @@ CPPCMS_LICENSE = LGPL-3.0
> CPPCMS_LICENSE_FILES = COPYING.TXT
> CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
> CPPCMS_INSTALL_STAGING = YES
> +CPPCMS_CXXFLAGS = $(TARGET_CXXFLAGS)
>
> # disable rpath to avoid getting /usr/lib added to the link search
> # path
> -CPPCMS_CONF_OPTS = -DCMAKE_SKIP_RPATH=ON
> +CPPCMS_CONF_OPTS = \
> + -DCMAKE_SKIP_RPATH=ON \
> + -DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)"
>
> CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
>
> ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
> CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON
> CPPCMS_DEPENDENCIES += icu
> +CPPCMS_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
> endif
>
> ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] cppcms: fix build with ICU
2017-07-22 20:24 [Buildroot] [PATCH] cppcms: fix build with ICU Thomas Petazzoni
2017-07-22 20:37 ` Arnout Vandecappelle
@ 2017-07-22 20:41 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-07-22 20:41 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 22 Jul 2017 22:24:26 +0200, Thomas Petazzoni wrote:
> Since the bump of ICU to 59.1, it needs C++11. cppcms has been updated
> with the appropriate dependency on gcc >= 4.8, but it also needs
> -std=c++11. Therefore, this patch complements the CXXFLAGS passed to
> cppcms by adding what icu-config reports, in a manner similar to what
> was done to fix the same issue in the PHP package in commit
> 214a76d045f906c1a8d687b7c7e7bc85c5b09906 ("package/php: fix icu
> support").
>
> Fixes:
>
> http://autobuild.buildroot.net/results/f05d9999f1f3248b6a50f14de476108028ed047e/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/cppcms/cppcms.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-22 20:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-22 20:24 [Buildroot] [PATCH] cppcms: fix build with ICU Thomas Petazzoni
2017-07-22 20:37 ` Arnout Vandecappelle
2017-07-22 20:41 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox