• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libunwind/0001-add-disable-tests-option.patch
Bernd KuhlsBernd Kuhls committed dee0cf4181417 Jun 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 208a430bcbab7d63a4c04242f13c4740e0246a56 Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?=D0=9A=D0=BE=D1=80=D0=BE=D0=BB=D0=B5=D0=B2=20=D0=A1=D0=B5?=
3
 =?UTF-8?q?=D1=80=D0=B3=D0=B5=D0=B9?= <korolev.sergey@gmail.com>
4
Date: Wed, 11 May 2016 22:48:55 +0300
5
Subject: [PATCH] add --disable-tests option
6
​
7
Allows to skip tests build.
8
​
9
Backported from upstream master branch:
10
https://github.com/libunwind/libunwind/commit/208a430bcbab7d63a4c04242f13c4740e0246a56
11
​
12
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
13
---
14
 Makefile.am  |  6 +++++-
15
 configure.ac | 13 +++++++++++--
16
 2 files changed, 16 insertions(+), 3 deletions(-)
17
​
18
diff --git a/Makefile.am b/Makefile.am
19
index 6a3ed9e..0c29b3e 100644
20
--- a/Makefile.am
21
+++ b/Makefile.am
22
@@ -42,7 +42,11 @@ endif
23
 
24
 nodist_include_HEADERS = include/libunwind-common.h
25
 
26
-SUBDIRS = src tests
27
+SUBDIRS = src
28
+
29
+if CONFIG_TESTS
30
+SUBDIRS += tests
31
+endif
32
 
33
 if CONFIG_DOCS
34
 SUBDIRS += doc
35
diff --git a/configure.ac b/configure.ac
36
index 863fb8f..6c46cf3 100644
37
--- a/configure.ac
38
+++ b/configure.ac
39
@@ -129,6 +129,10 @@ AC_ARG_ENABLE(documentation,
40
    AS_HELP_STRING([--disable-documentation],[Disable generating the man pages]),,
41
    [enable_documentation=yes])
42
 
43
+AC_ARG_ENABLE(tests,
44
+ AS_HELP_STRING([--disable-tests],[Disable tests build]),,
45
+ [enable_tests=yes])
46
+
47
 AC_MSG_CHECKING([if we should build libunwind-setjmp])
48
 AC_MSG_RESULT([$enable_setjmp])
49
 
50
@@ -396,8 +400,13 @@ if test "x$enable_documentation" = "xyes"; then
51
   AC_CONFIG_FILES(doc/Makefile doc/common.tex)
52
 fi
53
 
54
-AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile tests/check-namespace.sh
55
-       include/libunwind-common.h
56
+AM_CONDITIONAL([CONFIG_TESTS], [test x$enable_tests = xyes])
57
+if test "x$enable_tests" = "xyes"; then
58
+  AC_CONFIG_FILES(tests/Makefile tests/check-namespace.sh)
59
+fi
60
+
61
+AC_CONFIG_FILES(Makefile src/Makefile
62
+                include/libunwind-common.h
63
                 include/libunwind.h include/tdep/libunwind_i.h)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.