On Wed, 28 Sep 2022, Bernhard M. Wiedemann wrote:
On 27/09/2022 12.55, Richard Biener wrote:
%if %{suse_version} >= 1599 --with-arch-32=x86-64-v2 \ %else --with-arch-32=x86-64 \ %endif
would be nicer, if this would not depend on suse_version directly, but use a macro set in prjconf. Then there can be ports projects setting it differently.
Hmm. Note this part of the spec file is already quite ugly :/ So we could parse %{optflags} and look for any -march and supply that to the configury (note --with-arch doesn't accept everything that -march= accepts ...) Richard. -- Richard Biener <rguenther@suse.de> SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg)