The unshare test needs $CC defined, source configure to get it.
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 1911efc..30c7eba 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -6,12 +6,14 @@
 mkdir -p generated
 OUTFILE=generated/Config.in
 
+source configure
+
 genconfig()
 {
   # Probe for container support on target
 
   echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1
-  $CC -c -xc -o /dev/null - 2>/dev/null << EOF
+  $CC -c -xc -o /dev/null - << EOF
     #include <sched.h>
     int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET;
 EOF