diff --git a/sile.spec b/sile.spec index 34ed626..957b9d7 100644 --- a/sile.spec +++ b/sile.spec @@ -176,7 +176,7 @@ unset LIBSSH2_SYS_USE_PKG_CONFIG export RUSTFLAGS=" -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C incremental=false -C strip=none" export CARGO_AUDITABLE=auditable export CARGO_FEATURE_VENDORED=1 -export LUA_INCLUDE="-I/usr/include/luajit-5_1-2.1" +export LUA_INCLUDE="$(pkg-config --cflags-only-I luajit)" export CFLAGS="%optflags $(pkg-config --cflags-only-I luajit)" export CXXFLAGS="%optflags $(pkg-config --cflags-only-I luajit)" %configure \