diff --git a/duktape.changes b/duktape.changes index bc99584..44ef8fe 100644 --- a/duktape.changes +++ b/duktape.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 24 10:28:23 UTC 2024 - Guillaume GARDET + +- Build with distro flags + ------------------------------------------------------------------- Thu Sep 14 06:26:43 UTC 2023 - Dominique Leuenberger diff --git a/duktape.spec b/duktape.spec index 142e33f..52fa1ca 100644 --- a/duktape.spec +++ b/duktape.spec @@ -58,9 +58,13 @@ application that use %{name}. %autosetup -p1 %build +export LDFLAGS="%{?_lto_cflags}" +export CFLAGS="%{optflags}" %make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} %install +export LDFLAGS="%{?_lto_cflags}" +export CFLAGS="%{optflags}" %make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} %ldconfig_scriptlets -n lib%{name}%{sover}