b151413 Use %set_build_flags macro to set CFLAGS/CXXFLAGS/LDFLAGS

Authored and Committed by kalev 2 years ago
1 file changed. 5 lines added. 4 lines removed.
    Use %set_build_flags macro to set CFLAGS/CXXFLAGS/LDFLAGS
    
    We need to call this manually as the build doesn't use any of the
    standard %configure or %cmake or %meson macros that call
    %set_build_flags.
    
    Previously, the build was setting CFLAGS and CXXFLAGS, but not LDFLAGS,
    which meant hardening flags weren't correctly passed to the linker and
    flatpak builds didn't get -L/app/lib correctly set.
    
    Calling %set_build_flags fixes both.
    
        
file modified
+5 -4