Skip to content

Commit 74a3669

Browse files
committed
Possible MacOS build fix
1 parent e8ae951 commit 74a3669

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

packages/macos/openocd/build-openocd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set -euo pipefail
55
cd openocd
66
sed -i '' -e 's/@ref{linuxgpiod, linuxgpiod}/@b{linuxgpiod}/g' doc/openocd.texi
77

8+
git apply ../../packages/macos/openocd/parport.diff
9+
810
./bootstrap
911
# See https://github.com/raspberrypi/openocd/issues/30
1012
# ./configure --disable-werror CAPSTONE_CFLAGS="$(pkg-config capstone --cflags | sed s/.capstone\$//)"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/configure.ac b/configure.ac
2+
index e48653b21..54ebf47b9 100644
3+
--- a/configure.ac
4+
+++ b/configure.ac
5+
@@ -471,7 +471,7 @@ AS_CASE([$host_os],
6+
],
7+
[darwin*], [
8+
is_darwin=yes
9+
-
10+
+ parport=no
11+
AS_IF([test "x$parport_use_giveio" = "xyes"], [
12+
AC_MSG_WARN([--enable-parport-giveio cannot be used by Darwin hosts])
13+
])

0 commit comments

Comments
 (0)