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
This commit is contained in:
Marcus Meissner 2024-01-29 12:35:35 +00:00 committed by Git OBS Bridge
parent 0f6d1e14e6
commit feaa89ffa7
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 24 10:28:23 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Build with distro flags
-------------------------------------------------------------------
Thu Sep 14 06:26:43 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

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