--- a/makelib/rules.make Sun Nov 26 09:18:54 2017 +0000
+++ b/makelib/rules.make Wed Nov 29 16:46:46 2017 +0000
@@ -253,7 +253,7 @@
#
# unconditionally makes a new makefile
-# obsolete.
+# o$lete.
#
makeMakefile:
@echo "making $(MAKEFILE) for $(CONF) $(CONF_PACKS) ..."
@@ -1090,6 +1090,10 @@
$(LIBNAME).$(SO): $(LIBNAME)$(OBJNAME)
@echo "linking class library ..."
$(LD) -shared $(LDFLAGS) -o $@ $< $(LOCAL_SHARED_LIBS) $(EXTRA_SHARED_LIBS)
+ $(OBJCOPY) --only-keep-debug $@ $@.debug
+ $(CHMOD) ugo-x $@.debug
+ $(STRIP) --strip-debug --strip-unneeded $@
+ $(OBJCOPY) --add-gnu-debuglink="$@.debug" $@
newobj_staticLink::
@echo "linking static classLib object ..."