diff options
| author | Zephyr Lykos <[email protected]> | 2023-06-04 02:41:50 +0800 |
|---|---|---|
| committer | Zephyr Lykos <[email protected]> | 2023-06-04 02:43:01 +0800 |
| commit | 0bd832a185fbc868e543e13426a3efc6a53f2405 (patch) | |
| tree | f10f68a55bb1ebf1983fe81d6b11b49f16afc02d /scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch | |
| parent | 9d86054a09b6697b5490cd373848f030e6194eb0 (diff) | |
scripts/rpmbuild: refactor specfile for Fedora
Diffstat (limited to 'scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch')
| -rw-r--r-- | scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch b/scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch new file mode 100644 index 000000000..4ff14000f --- /dev/null +++ b/scripts/rpmbuild/0002-pkgconfig-unversioned-lua.patch @@ -0,0 +1,15 @@ +diff --git a/core/xmake.sh b/core/xmake.sh +index 2ae2e686b..2b7767b0c 100755 +--- a/core/xmake.sh ++++ b/core/xmake.sh +@@ -91,8 +91,8 @@ option_find_lua() { + local ldflags="" + local cflags="" + option "lua" +- cflags=`pkg-config --cflags lua5.4 2>/dev/null` +- ldflags=`pkg-config --libs lua5.4 2>/dev/null` ++ cflags=`pkg-config --cflags lua 2>/dev/null` ++ ldflags=`pkg-config --libs lua 2>/dev/null` + if test_z "${cflags}"; then + cflags="-I/usr/include/lua5.4" + fi |
