with this small change we reduce dummy-shlib.so size from 8.24 KB to 5.62 KB
i have tested the build with tomcat and some other apps, everything looks good

Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 Makefile | 37 +++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 18 deletions(-)

diff --git a/Makefile b/Makefile
index 8dd2371..80a1137 100644
--- a/Makefile
+++ b/Makefile
@@ -410,6 +410,7 @@ cmdline = --nomount tests/tst-hello.so
 endif
 
 $(out)/loader-stripped.elf: $(out)/loader.elf
+       $(call quiet, $(STRIP) $(out)/dummy-shlib.so, STRIP dummy-shlib.so )
        $(call quiet, $(STRIP) $(out)/loader.elf -o $(out)/loader-stripped.elf, 
STRIP loader.elf -> loader-stripped.elf )
 
 ifeq ($(arch),x64)
@@ -554,23 +555,23 @@ bsd += bsd/porting/mmu.o
 bsd += bsd/porting/pcpu.o
 bsd += bsd/porting/bus_dma.o
 bsd += bsd/porting/kobj.o
-bsd += bsd/sys/netinet/if_ether.o  
-bsd += bsd/sys/compat/linux/linux_socket.o  
-bsd += bsd/sys/compat/linux/linux_ioctl.o  
-bsd += bsd/sys/net/if_ethersubr.o  
-bsd += bsd/sys/net/if_llatbl.o  
-bsd += bsd/sys/net/radix.o  
-bsd += bsd/sys/net/route.o  
-bsd += bsd/sys/net/raw_cb.o  
-bsd += bsd/sys/net/raw_usrreq.o  
-bsd += bsd/sys/net/rtsock.o  
-bsd += bsd/sys/net/netisr.o  
-bsd += bsd/sys/net/netisr1.o  
-bsd += bsd/sys/net/if_dead.o  
-bsd += bsd/sys/net/if_clone.o  
-bsd += bsd/sys/net/if_loop.o  
-bsd += bsd/sys/net/if.o  
-bsd += bsd/sys/net/pfil.o  
+bsd += bsd/sys/netinet/if_ether.o
+bsd += bsd/sys/compat/linux/linux_socket.o
+bsd += bsd/sys/compat/linux/linux_ioctl.o
+bsd += bsd/sys/net/if_ethersubr.o
+bsd += bsd/sys/net/if_llatbl.o
+bsd += bsd/sys/net/radix.o
+bsd += bsd/sys/net/route.o
+bsd += bsd/sys/net/raw_cb.o
+bsd += bsd/sys/net/raw_usrreq.o
+bsd += bsd/sys/net/rtsock.o
+bsd += bsd/sys/net/netisr.o
+bsd += bsd/sys/net/netisr1.o
+bsd += bsd/sys/net/if_dead.o
+bsd += bsd/sys/net/if_clone.o
+bsd += bsd/sys/net/if_loop.o
+bsd += bsd/sys/net/if.o
+bsd += bsd/sys/net/pfil.o
 bsd += bsd/sys/net/routecache.o
 bsd += bsd/sys/netinet/in.o
 bsd += bsd/sys/netinet/in_pcb.o
@@ -1947,7 +1948,7 @@ libuutil-objects = $(foreach file, $(libuutil-file-list), 
$(out)/bsd/cddl/contri
 
 define libuutil-includes
   bsd/cddl/contrib/opensolaris/lib/libuutil/common
-  bsd/cddl/compat/opensolaris/include 
+  bsd/cddl/compat/opensolaris/include
   bsd/sys/cddl/contrib/opensolaris/uts/common
   bsd/sys/cddl/compat/opensolaris
   bsd/cddl/contrib/opensolaris/head
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to