Alexandre Julliard : make_specfiles: Don' t copy the ordinal flag if not appropriate.
Module: wine Branch: master Commit: a0ec065666b581a961e937e7f473c6e87e3bb81e URL: http://source.winehq.org/git/wine.git/?a=commit;h=a0ec065666b581a961e937e7f4... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 19 14:36:24 2012 +0100 make_specfiles: Don't copy the ordinal flag if not appropriate. --- tools/make_specfiles | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/tools/make_specfiles b/tools/make_specfiles index 93f5ff1..f618c56 100755 --- a/tools/make_specfiles +++ b/tools/make_specfiles @@ -219,7 +219,12 @@ sub update_spec_file($) goto done; } - my $flags = ($parent{callconv} ne "stub" || $update_flags) ? $parent{flags} : $descr{flags}; + my $flags = $descr{flags}; + if ($parent{callconv} ne "stub" || $update_flags) + { + $flags = $parent{flags}; + $flags =~ s/-ordinal\s*// if $descr{ordinal} eq "@"; + } if ($parent{callconv} ne "stub" || $parent{args}) {
participants (1)
-
Alexandre Julliard