diff options
author | bapt <bapt@FreeBSD.org> | 2017-10-04 16:01:09 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2017-10-04 16:01:09 +0800 |
commit | 40b139d5a41cc8e2d04efbf1e0166bca3c49af69 (patch) | |
tree | a47498283e088ab2b6e8b6ed0cd285d034e58b7c /x11 | |
parent | 9b28630d420abf3dbff45c3310eadd2c089b223a (diff) | |
download | freebsd-ports-gnome-40b139d5a41cc8e2d04efbf1e0166bca3c49af69.tar.gz freebsd-ports-gnome-40b139d5a41cc8e2d04efbf1e0166bca3c49af69.tar.zst freebsd-ports-gnome-40b139d5a41cc8e2d04efbf1e0166bca3c49af69.zip |
Fix usage of autoconf's AC_TRY_COMPILE to avoid nested function
Obtained from: OpenBSD
Diffstat (limited to 'x11')
-rw-r--r-- | x11/keybinder/Makefile | 1 | ||||
-rw-r--r-- | x11/keybinder/files/patch-configure.ac | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/x11/keybinder/Makefile b/x11/keybinder/Makefile index 871a9ff85046..b778733dfb20 100644 --- a/x11/keybinder/Makefile +++ b/x11/keybinder/Makefile @@ -2,6 +2,7 @@ PORTNAME= keybinder PORTVERSION= 0.3.1 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= x11 diff --git a/x11/keybinder/files/patch-configure.ac b/x11/keybinder/files/patch-configure.ac new file mode 100644 index 000000000000..9445e823a1dd --- /dev/null +++ b/x11/keybinder/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2015-11-06 15:08:46 UTC ++++ configure.ac +@@ -139,7 +139,7 @@ if test "x$enable_python" != "xno"; then + ac_save_cc="$CC" + CC="$CC -fno-strict-aliasing" + AC_CACHE_VAL(ac_cv_no_strict_aliasing_ok, +- AC_TRY_COMPILE([],[int main() { return 0; }], ++ AC_TRY_COMPILE([],[], + ac_cv_no_strict_aliasing_ok=yes, + ac_cv_no_strict_aliasing_ok=no)) + CC="$ac_save_cc" |