Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt compiler flags related enhancements from Fedora #692

Merged
merged 2 commits into from May 14, 2019

Commits on May 6, 2019

  1. Adopt language-specific %build_fooflags macros from Fedora

    %{optflags} has been the catchall for all compiler options but this
    is quite limiting as there's no way to add for example C++ specific
    options distro-wide. This adds separate %build_cflags, %build_cxxflags,
    %build_fflags for the gcc-supported languages, and additionally
    %build_ldflags for distro-wide LDFLAGS setting.
    
    Based on Florian Weimer's work in Fedoras redhat-rpm-config macros.
    pmatilai committed May 6, 2019
    Configuration menu
    Copy the full SHA
    90e2c81 View commit details
    Browse the repository at this point in the history
  2. Split compiler flag out of %configure to separate %set_build_flags macro

    Not all the world is autotools based, mercifully. Let the other build
    systems benefit from the central rpm macros as well by splitting
    the XXFLAGS setting out of %configure.
    
    Based on Florian Weimer's work in Fedoras redhat-rpm-config macros.
    pmatilai committed May 6, 2019
    Configuration menu
    Copy the full SHA
    dc741df View commit details
    Browse the repository at this point in the history