about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-02-23 12:50:03 +0100
committerMichael Vetter <jubalh@iodoru.org>2022-02-23 12:50:03 +0100
commit35b7555399d9058f0b734a951c9d1339ff2576e3 (patch)
treea84e3bf53fda3315ba4be11ce8b099059b825739
parent0b8b851bd6258edbe7bd10661bc3b7e1f194399b (diff)
downloadprofani-tty-35b7555399d9058f0b734a951c9d1339ff2576e3.tar.gz
build: Use CPPFLAGS for obsd
Fixing build failure detected by sr.ht for OpenBSD:

```
src/ui/inputwin.c: In function '_inp_rl_startup_hook':
src/ui/inputwin.c:444:5: error: implicit declaration of function 'rl_bind_keyseq'; did you mean 'rl_bind_key'? [-Werror=implicit-function-declaration]
  444 |     rl_bind_keyseq("\\e1", _inp_rl_win_1_handler);
      |     ^~~~~~~~~~~~~~
      |     rl_bind_key
cc1: all warnings being treated as errors
```

Seems like both OSX and OpenBSD need CPPFLAGS here.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c2878e5e..5f543c4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ AS_IF([test "x$PLATFORM" = xosx],
       [test "x$PLATFORM" = xopenbsd],
       [AC_CHECK_FILE([/usr/local/include/ereadline],
           [LIBS="-lereadline $LIBS"
-              AM_CFLAGS="-I/usr/local/include/ereadline $AM_CFLAGS"
+              AM_CPPFLAGS="-I/usr/local/include/ereadline $AM_CFLAGS"
               AM_LDFLAGS="-L/usr/local/lib $AM_LDFLAGS"
               AC_SUBST(AM_LDFLAGS)])],