Accepting request 1067737 from home:lee_duncan:branches:network

- Build system: meson builds were ignoring optflags, and other
  passed in compiler options.

OBS-URL: https://build.opensuse.org/request/show/1067737
OBS-URL: https://build.opensuse.org/package/show/network/open-iscsi?expand=0&rev=221
This commit is contained in:
Lee Duncan 2023-02-25 18:47:18 +00:00 committed by Git OBS Bridge
parent 1e7738b37c
commit d79e2b3e68
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Feb 25 01:32:02 UTC 2023 - Lee Duncan <lduncan@suse.com>
- Build system: meson builds were ignoring optflags, and other
passed in compiler options.
-------------------------------------------------------------------
Wed Dec 21 22:47:05 UTC 2022 - Lee Duncan <lduncan@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package open-iscsi
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -148,7 +148,7 @@ the libopeniscsiusr library.
%build
[ -z "$SOURCE_DATE_EPOCH" ] || export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
%meson --libdir=%{_libdir} \
-Dc_flags="%{optflags} -fno-strict-aliasing -fno-common -DOFFLOAD_BOOT_SUPPORTED" \
-Dc_args="%{optflags} -fno-strict-aliasing -fno-common -DOFFLOAD_BOOT_SUPPORTED" \
-Discsi_sbindir=%{_iscsi_sbindir} -Ddbroot=%{_dbroot} -Drulesdir=%{_udevrulesdir} -Dlockdir=%{_lockdir} \
-Dinstall_dbdir_move_readme=%{_install_dbdir_move_readme_value} \
--strip