<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hello!</div><br class=""><div><blockquote type="cite" class=""><div class="">On 10 Jun 2021, at 00:24, Васильев Zmey! Олег <<a href="mailto:zmey1992@ya.ru" class="">zmey1992@ya.ru</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi!</div><div class=""> </div><div class="">Tried to build Unit 1.24 and found out that I can't compile Go module without environment variable set: CGO_CFLAGS_ALLOW='-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS|-fcf-protection'</div><div class="">Go complains that there are invalid (untrusted) flags:</div><div class=""><div class="">go build <a href="http://unit.nginx.org/go:" class="">unit.nginx.org/go:</a> invalid flag in #cgo CFLAGS: -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS</div></div><div class=""><div class="">go build <a href="http://unit.nginx.org/go:" class="">unit.nginx.org/go:</a> invalid flag in #cgo CFLAGS: -fcf-protection</div></div></div></blockquote><div><br class=""></div><div>Most likely these flags were added because you have specified it when configuring Unit.</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div class=""> </div><div class="">So please consider to either add CGO_CFLAGS_ALLOW to build script or remove these options.</div></div></div></blockquote><div><br class=""></div><div>If I’m right thinking you are building Unit and Go module from sources with these flags, it is up to you to control your building environment.</div><div><br class=""></div><div>If my assumption is wrong, please describe what you are doing with more details.</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div class=""> </div><div class="">WBR, Oleg.</div></div></div></blockquote><div><br class=""></div><div>—</div><div>Best regards,</div><div>Max</div><br class=""><blockquote type="cite" class=""><div class="">
_______________________________________________<br class="">unit mailing list<br class=""><a href="mailto:unit@nginx.org" class="">unit@nginx.org</a><br class=""><a href="https://mailman.nginx.org/mailman/listinfo/unit" class="">https://mailman.nginx.org/mailman/listinfo/unit</a></div></blockquote></div><div><br class=""></div><br class=""></body></html>