diff --git a/nix/build-all.py b/nix/build-all.py index 104188a834..ce50c82065 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -406,7 +406,7 @@ try: except KeyError: LDFLAGS="" -if sp.call([bash, "-c", "ld --gc-sections 2>&1 | grep unrecognized &> /dev/null"]) != 0: +if sp.call([bash, "-c", "ld --gc-sections 2>&1 | grep -- --gc-sections &> /dev/null"]) != 0: CXXFLAGS_MINIMAL="%s -fPIC %s" % (CXXFLAGS, str.join(" ", ADDITIONAL_ARGS)) os.environ["CXXFLAGS_MINIMAL"]=CXXFLAGS_MINIMAL CFLAGS_MINIMAL="%s -fPIC %s" % (CFLAGS, str.join(" ", ADDITIONAL_ARGS))