[klibc] Make sure klibc.so is +x
klibc.so should be +x, but a lot of newer binutils generate .so files
as -x by default.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 37cc485..ad72116 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -145,7 +145,8 @@
quiet_cmd_sohash = GEN $@
cmd_sohash = cat $< > $@; \
- $(KLIBCSTRIP) $(KLIBCSTRIPFLAGS) $@; \
+ $(KLIBCSTRIP) $(KLIBCSTRIPFLAGS) $@; \
+ chmod a+x $@; \
rm -f $(obj)/klibc-???????????????????????????.so; \
ln -f $@ $(obj)/klibc-$(SOLIBHASH).so
$(SOHASH): $(SOLIB) $(SOLIB).hash