8580b4c Golang uses gcc to compile binaries but doesn't inherit CFLAGS.

Authored and Committed by jnovy 3 years ago
    Golang uses gcc to compile binaries but doesn't inherit CFLAGS.
    
    The CGO_CFLAGS variable needs to be used in order to do so. Not
    specifying CGO_CFLAGS would lead to not using %optflags and hence
    in unoptimized/unhardened code.
    
    Signed-off-by: Jindrich Novy <jnovy@redhat.com>