From f34067a19cf980a1bd1d4e8767b2bf8d1681d9b4a83db336b200818f8a2bc5aa Mon Sep 17 00:00:00 2001 From: Gordon Leung Date: Wed, 19 Jun 2024 00:01:23 +0000 Subject: [PATCH] Try using pkgconfig instead of hardcoding luajit header path OBS-URL: https://build.opensuse.org/package/show/Publishing/sile?expand=0&rev=49 --- sile.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \