All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/hiawatha: fix build when c++ support is disabled
@ 2017-06-05 11:30 Bernd Kuhls
  2017-06-05 13:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2017-06-05 11:30 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/c04/c04ff29b83c020573add597c355c57a6d9c9761d/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 .../0001-cmake-allow-build-without-c.patch         | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/hiawatha/0001-cmake-allow-build-without-c.patch

diff --git a/package/hiawatha/0001-cmake-allow-build-without-c.patch b/package/hiawatha/0001-cmake-allow-build-without-c.patch
new file mode 100644
index 000000000..d264d621c
--- /dev/null
+++ b/package/hiawatha/0001-cmake-allow-build-without-c.patch
@@ -0,0 +1,34 @@
+From 784e46afd7530f3010726ba73cc1a81059eae8bf Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Mon, 5 Jun 2017 13:26:18 +0200
+Subject: [PATCH] cmake: allow build without c++
+
+By default cmake also searches for a c++ compiler:
+https://cmake.org/cmake/help/v3.7/command/project.html
+"By default C and CXX are enabled if no language options are given."
+
+This patch restricts the compiler to C to fix a build error detected
+by the buildroot autobuilders:
+http://autobuild.buildroot.net/results/c04/c04ff29b83c020573add597c355c57a6d9c9761d/build-end.log
+
+Patch sent upstream: https://github.com/hsleisink/hiawatha/pull/30
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4f28d76..e8051fc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ cmake_minimum_required(VERSION 3.0)
+-project(Hiawatha VERSION 10.6)
++project(Hiawatha VERSION 10.6 LANGUAGES C)
+ 
+ # Compiler
+ set(CMAKE_C_FLAGS "-O2 -Wall -Wextra ${CMAKE_C_FLAGS}")
+-- 
+2.11.0
+
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/hiawatha: fix build when c++ support is disabled
  2017-06-05 11:30 [Buildroot] [PATCH 1/1] package/hiawatha: fix build when c++ support is disabled Bernd Kuhls
@ 2017-06-05 13:08 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-06-05 13:08 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon,  5 Jun 2017 13:30:10 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/c04/c04ff29b83c020573add597c355c57a6d9c9761d/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  .../0001-cmake-allow-build-without-c.patch         | 34 ++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 package/hiawatha/0001-cmake-allow-build-without-c.patch

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] 2+ messages in thread

end of thread, other threads:[~2017-06-05 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 11:30 [Buildroot] [PATCH 1/1] package/hiawatha: fix build when c++ support is disabled Bernd Kuhls
2017-06-05 13:08 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.