diff options
Diffstat (limited to 'vcpkg/ports/libmodbus/cflags.diff')
| -rw-r--r-- | vcpkg/ports/libmodbus/cflags.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/libmodbus/cflags.diff b/vcpkg/ports/libmodbus/cflags.diff new file mode 100644 index 0000000..854aca2 --- /dev/null +++ b/vcpkg/ports/libmodbus/cflags.diff @@ -0,0 +1,20 @@ +diff --git a/configure.ac b/configure.ac +index 920612f..06d5dfa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -147,6 +147,7 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include <sys/ioctl.h>]]) + # Check for RTS flags + AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include <sys/ioctl.h>]]) + ++test -n "$WARNING_CFLAGS" || \ + WARNING_CFLAGS="-Wall \ + -Wmissing-declarations -Wmissing-prototypes \ + -Wnested-externs -Wpointer-arith \ +@@ -178,6 +179,7 @@ AC_ARG_ENABLE([debug], + [enable_debug=$enableval], + [enable_debug=no]) + ++test -n "$CFLAGS" || \ + AS_IF([test "x$enable_debug" = "xyes"], [ + CFLAGS="-g -O0" + CXXFLAGS="-g -O0" |