tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] NOGCCERROR disables --fatal-warnings also from LDFLAGS



    Also remove warnings-as-errors from linker flags when building
    with NOGCCERROR. libcrypto shows patent warnings with static linking,
    and now setting NOGCCERROR to some value should work around those.

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 3d9da91..2852ff8 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -23,7 +23,7 @@ CFLAGS+=      -Wa,--fatal-warnings
 # Set linker warnings to be fatal
 # XXX no proper way to avoid "FOO is a patented algorithm" warnings
 # XXX on linking static libs
-.if (!defined(MKPIC) || ${MKPIC} != "no") && \
+.if !defined(NOGCCERROR) && (!defined(MKPIC) || ${MKPIC} != "no") && \
     (!defined(LDSTATIC) || ${LDSTATIC} != "-static")
 LDFLAGS+=      -Wl,--fatal-warnings
 .endif


Home | Main Index | Thread Index | Old Index