dslinux/toolchain Makefile
stsp
stsp at user.in-berlin.de
Sun Aug 27 22:41:09 CEST 2006
Update of /cvsroot/dslinux/dslinux/toolchain
In directory antilope:/tmp/cvs-serv22800
Modified Files:
Makefile
Log Message:
Strip only debug symbols from libraries.
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/toolchain/Makefile,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Makefile 23 Aug 2006 16:46:41 -0000 1.19
+++ Makefile 27 Aug 2006 20:41:07 -0000 1.20
@@ -582,21 +582,20 @@
rm -rf $(PREFIX)/$(TARGET)/include
rm -rf $(PREFIX)/$(TARGET)/usr/include/asm
ln -sf asm-arm $(PREFIX)/$(TARGET)/usr/include/asm
- # strip binaries
+ # strip binaries completely
-strip $(PREFIX)/bin/*
- strip $(PREFIX)/lib/*.a
-strip $(PREFIX)/$(TARGET)/bin/*
-strip $(PREFIX)/libexec/gcc/$(TARGET)/$(GCC_VER)/*
-strip $(PREFIX)/libexec/gcc/$(TARGET)/$(GCC_VER)/install-tools/*
- $(TARGET)-strip $(PREFIX)/$(TARGET)/lib/*.o
- $(TARGET)-strip $(PREFIX)/$(TARGET)/lib/*.a
- $(TARGET)-strip $(PREFIX)/$(TARGET)/lib/thumb/*.a
- # XXX: Don't strip these as it breaks compilation in ncurses.
- # ("Undefined reference to __udivsi3" etc. - but why?)
- #$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/*.o
- #$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/*.a
- #$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.o
- #$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.a
+ # strip debug symbols from libraries
+ strip --strip-debug $(PREFIX)/lib/*.a
+ $(TARGET)-strip --strip-debug $(PREFIX)/$(TARGET)/lib/*.o
+ $(TARGET)-strip --strip-debug $(PREFIX)/$(TARGET)/lib/*.a
+ $(TARGET)-strip --strip-debug $(PREFIX)/$(TARGET)/lib/thumb/*.a
+ $(TARGET)-strip --strip-debug $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/*.o
+ $(TARGET)-strip --strip-debug $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/*.a
+ $(TARGET)-strip --strip-debug $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.o
+ $(TARGET)-strip --strip-debug $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.a
touch $@
#######################################################################
More information about the dslinux-commit
mailing list