summaryrefslogtreecommitdiff
path: root/system/abuild/newapkbuild-cmake.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-20 22:03:13 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-20 22:03:13 -0600
commit719252b7b29749389730057387d5a43b5516f7fe (patch)
tree4f7d3c3ef865310ac2a6512e53b53e11ff74a1ed /system/abuild/newapkbuild-cmake.patch
parent10613294b48e3736c0edf5f93c6ff34b52339079 (diff)
downloadpackages-719252b7b29749389730057387d5a43b5516f7fe.tar.gz
packages-719252b7b29749389730057387d5a43b5516f7fe.tar.bz2
packages-719252b7b29749389730057387d5a43b5516f7fe.tar.xz
packages-719252b7b29749389730057387d5a43b5516f7fe.zip
system/abuild: add our custom patchset to abuild
Diffstat (limited to 'system/abuild/newapkbuild-cmake.patch')
-rw-r--r--system/abuild/newapkbuild-cmake.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/abuild/newapkbuild-cmake.patch b/system/abuild/newapkbuild-cmake.patch
new file mode 100644
index 000000000..e83ba753a
--- /dev/null
+++ b/system/abuild/newapkbuild-cmake.patch
@@ -0,0 +1,35 @@
+From 4e0fb906bb3c77f307763a9565295e7d23a3b5e7 Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Wed, 11 Oct 2017 17:47:23 -0500
+Subject: [PATCH] newapkbuild: add default check to CMake and RelWithDebugInfo
+ type
+
+---
+ newapkbuild.in | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/newapkbuild.in b/newapkbuild.in
+index c11aa39..d1cf2b9 100644
+--- a/newapkbuild.in
++++ b/newapkbuild.in
+@@ -66,11 +66,16 @@ build_cmake() {
+ -DCMAKE_INSTALL_PREFIX=/usr \\
+ -DCMAKE_INSTALL_LIBDIR=lib \\
+ -DBUILD_SHARED_LIBS=True \\
+- -DCMAKE_BUILD_TYPE=Release \\
++ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \\
+ -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\
+ -DCMAKE_C_FLAGS="\$CFLAGS" \\
+ \${CMAKE_CROSSOPTS}
+ make
++}
++
++check() {
++ cd "\$builddir"
++ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+ __EOF__
+ }
+
+--
+2.14.1
+