Try using pkgconfig instead of hardcoding luajit header path

OBS-URL: https://build.opensuse.org/package/show/Publishing/sile?expand=0&rev=49
This commit is contained in:
Gordon Leung 2024-06-19 00:01:23 +00:00 committed by Git OBS Bridge
parent dc51c83974
commit f34067a19c

View File

@ -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 \