Fix build with lua 5.4

This commit is contained in:
lingsheng 2020-08-06 13:48:44 +08:00
parent 718d68d39f
commit 88c431e251

View File

@ -1,6 +1,6 @@
Name: elinks
Version: 0.12
Release: 1
Release: 2
Summary: A text-mode Web browser
License: GPLv2
URL: http://elinks.or.cz
@ -57,7 +57,7 @@ autoconf
autoheader
%build
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE"
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE -DLUA_COMPAT_5_3"
%configure %{?rescue:--without-gpm} \
--enable-256-colors --enable-bittorrent --with-gssapi \
--with-lua --with-openssl --without-gnutls \
@ -110,5 +110,8 @@ exit 0
%{_mandir}/man5/*
%changelog
* Thu Aug 06 2020 lingsheng<lingsheng@huawei.com> - 0.12-2
- Fix build with lua 5.4
* Wed Nov 13 2019 yangjian<yangjian79@huawei.com> - 0.12-1
- Package init