From feaa89ffa7b12bf4ba666464a51c0e8b3f38397980a106f330c0c0e3a0f8a759 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 29 Jan 2024 12:35:35 +0000 Subject: [PATCH] Accepting request 1141202 from home:Guillaume_G:branches:devel:libraries:c_c++ - Build with distro flags OBS-URL: https://build.opensuse.org/request/show/1141202 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/duktape?expand=0&rev=25 --- duktape.changes | 5 +++++ duktape.spec | 4 ++++ 2 files changed, 9 insertions(+) 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}