From cba3ccea13193dd0a8f1f942312d384d280173b5 Mon Sep 17 00:00:00 2001 From: Robert Izzard <r.izzard@surrey.ac.uk> Date: Fri, 6 Sep 2019 15:20:35 +0100 Subject: [PATCH] add warning correction for make so we know when the linker fails --- make | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make b/make index c841397d8..9d8bd01af 100755 --- a/make +++ b/make @@ -72,6 +72,11 @@ while($_ = next_make_line()) # skip spurious intel compiler messages <MAKE>;<MAKE>;<MAKE>;next; } + elsif(m!unrecognized option '-Wl,-soname,libbinary_c.so'!) + { + # oops we're using ld as the linker when we should use gcc + print "\n\n$magenta Linking error $_ $reset\n\nTo fix this, try\n\nexport LD=gcc\n\nor\n\nexport LD=/usr/bin/gcc\n\nto use the compiler as a linker, then retry the build.\n\n\n"; + } else { next if(suppress_warning($_)); -- GitLab