Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils Compile things with -Os. I wonder if compilin...



details:   https://anonhg.NetBSD.org/src/rev/c200ffc40cb0
branches:  trunk
changeset: 486290:c200ffc40cb0
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 18 00:43:05 2000 +0000

description:
Compile things with -Os.  I wonder if compiling -Mno-pic for mips and vax
would shrink them even more?

diffstat:

 distrib/utils/init_s/Makefile     |  3 ++-
 distrib/utils/libhack/Makefile    |  3 ++-
 distrib/utils/more/Makefile       |  5 +++--
 distrib/utils/ssh/Makefile        |  3 ++-
 distrib/utils/tls/Makefile        |  3 ++-
 distrib/utils/x_dd/Makefile       |  3 ++-
 distrib/utils/x_ftp/Makefile      |  3 ++-
 distrib/utils/x_gzip/Makefile     |  3 ++-
 distrib/utils/x_ifconfig/Makefile |  3 ++-
 distrib/utils/x_netstat/Makefile  |  3 ++-
 distrib/utils/x_ping/Makefile     |  3 ++-
 distrib/utils/x_ping6/Makefile    |  3 ++-
 distrib/utils/x_route/Makefile    |  3 ++-
 distrib/utils/x_sh/Makefile       |  3 ++-
 distrib/utils/zcat/Makefile       |  3 ++-
 15 files changed, 31 insertions(+), 16 deletions(-)

diffs (250 lines):

diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/init_s/Makefile
--- a/distrib/utils/init_s/Makefile     Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/init_s/Makefile     Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1999/06/21 01:19:36 cgd Exp $
+# $NetBSD: Makefile,v 1.9 2000/05/18 00:43:05 matt Exp $
 # Build a "small init" (i.e. for boot media)
 
 PROG=  init
@@ -10,6 +10,7 @@
 
 SRCDIR= ${.CURDIR}/../../../sbin/init
 CPPFLAGS+= -DLETS_GET_SMALL -I${SRCDIR}
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/libhack/Makefile
--- a/distrib/utils/libhack/Makefile    Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/libhack/Makefile    Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1999/09/26 04:49:37 dan Exp $
+# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt Exp $
 #
 # Stubs to kill off some things from libc:
 # This save space on a boot system.
@@ -20,6 +20,7 @@
 HACKOBJS+= opendir.o
 .endif
 
+COPTS+= -Os
 WARNS= 1
 MKPIC= no
 MKLINT= no
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/more/Makefile
--- a/distrib/utils/more/Makefile       Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/more/Makefile       Thu May 18 00:43:05 2000 +0000
@@ -1,16 +1,17 @@
-#      $NetBSD: Makefile,v 1.7 1999/02/13 02:54:18 lukem Exp $
+#      $NetBSD: Makefile,v 1.8 2000/05/18 00:43:06 matt Exp $
 #
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 
 PROG=  more
 MKMAN= no
 
-CPPFLAGS+=-I${.CURDIR}
 SRCS=  ch.c command.c decode.c help.c input.c line.c linenum.c main.c \
        option.c os.c output.c position.c prim.c screen.c signal.c \
        ttyin.c
 DPADD= ${LIBTERMCAP}
 LDADD= -ltermcap
+CPPFLAGS+=-I${.CURDIR}
+COPTS+= -Os
 
 beforeinstall:
        install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/more.help \
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/ssh/Makefile
--- a/distrib/utils/ssh/Makefile        Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/ssh/Makefile        Thu May 18 00:43:05 2000 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:18 lukem Exp $
+# $NetBSD: Makefile,v 1.3 2000/05/18 00:43:06 matt Exp $
 # Small Shell (i.e. for boot media)
 
 PROG=  ssh
 MKMAN= no
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/tls/Makefile
--- a/distrib/utils/tls/Makefile        Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/tls/Makefile        Thu May 18 00:43:05 2000 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:18 lukem Exp $
+# $NetBSD: Makefile,v 1.3 2000/05/18 00:43:06 matt Exp $
 # Tiny ls  (i.e. for boot media)
 
 PROG=  tls
 MKMAN= no
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_dd/Makefile
--- a/distrib/utils/x_dd/Makefile       Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_dd/Makefile       Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1999/06/21 01:19:36 cgd Exp $
+# $NetBSD: Makefile,v 1.9 2000/05/18 00:43:06 matt Exp $
 # Build a smaller dd (i.e. for boot media)
 
 PROG=  dd
@@ -10,6 +10,7 @@
 # SRCS+= conv_tab.c (not used)
 
 CPPFLAGS+= -DNO_CONV -I${SRCDIR}
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_ftp/Makefile
--- a/distrib/utils/x_ftp/Makefile      Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_ftp/Makefile      Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2000/05/04 03:27:09 itojun Exp $
+# $NetBSD: Makefile,v 1.8 2000/05/18 00:43:07 matt Exp $
 # Build a smaller ftp (i.e. for boot media)
 
 PROG=  ftp
@@ -17,6 +17,7 @@
 .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "hpcmips")
 CPPFLAGS+= -DINET6
 .endif
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_gzip/Makefile
--- a/distrib/utils/x_gzip/Makefile     Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_gzip/Makefile     Thu May 18 00:43:05 2000 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.1.1.1 1998/06/06 06:11:19 mrg Exp $
+#      $NetBSD: Makefile,v 1.2 2000/05/18 00:43:07 matt Exp $
 
 PROG=  gzip
 LDADD= -lz
 DPADD= ${LIBZ}
+COPTS+= -Os
 
 .include <bsd.prog.mk>
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_ifconfig/Makefile
--- a/distrib/utils/x_ifconfig/Makefile Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_ifconfig/Makefile Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2000/05/04 03:27:10 itojun Exp $
+# $NetBSD: Makefile,v 1.11 2000/05/18 00:43:07 matt Exp $
 # Build a smaller ifconfig (i.e. for boot media)
 
 PROG=  ifconfig
@@ -9,6 +9,7 @@
 .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "hpcmips")
 CPPFLAGS+= -DINET6
 .endif
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_netstat/Makefile
--- a/distrib/utils/x_netstat/Makefile  Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_netstat/Makefile  Thu May 18 00:43:05 2000 +0000
@@ -1,10 +1,11 @@
-#      $NetBSD: Makefile,v 1.5 1999/06/21 01:19:37 cgd Exp $
+#      $NetBSD: Makefile,v 1.6 2000/05/18 00:43:07 matt Exp $
 
 PROG=  netstat
 SRCS=  if.c inet.c main.c mbuf.c route.c
 
 SRCDIR= ${.CURDIR}/../../../usr.bin/netstat
 CPPFLAGS+= -DSMALL -I${SRCDIR}
+COPTS+= -Os
 LDADD= -lkvm
 DPADD= ${LIBKVM}
 MKMAN= no
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_ping/Makefile
--- a/distrib/utils/x_ping/Makefile     Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_ping/Makefile     Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 1999/10/18 20:19:39 pk Exp $
+# $NetBSD: Makefile,v 1.2 2000/05/18 00:43:07 matt Exp $
 # Build ping without IPSEC
 
 SRCDIR= ${.CURDIR}/../../../sbin/ping
@@ -6,6 +6,7 @@
 MKMAN= no
 LDADD= -lm
 CPPFLAGS+= -I${SRCDIR}
+COPTS+= -Os
 
 all: ${PROG}
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_ping6/Makefile
--- a/distrib/utils/x_ping6/Makefile    Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_ping6/Makefile    Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2000/01/04 08:14:12 itojun Exp $
+# $NetBSD: Makefile,v 1.2 2000/05/18 00:43:08 matt Exp $
 # Build ping6 without IPSEC
 
 SRCDIR= ${.CURDIR}/../../../sbin/ping6
@@ -7,6 +7,7 @@
 
 CPPFLAGS+=-I${SRCDIR}
 CPPFLAGS+=-DINET6
+COPTS+= -Os
 
 # KAME scope id hack
 CPPFLAGS+=-DKAME_SCOPEID
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_route/Makefile
--- a/distrib/utils/x_route/Makefile    Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_route/Makefile    Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2000/05/04 03:30:57 itojun Exp $
+#      $NetBSD: Makefile,v 1.8 2000/05/18 00:43:08 matt Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 PROG=  route
@@ -10,6 +10,7 @@
 .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "hpcmips")
 CPPFLAGS+= -DINET6
 .endif
+COPTS+= -Os
 
 BINOWN=        root
 BINMODE=4555
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/x_sh/Makefile
--- a/distrib/utils/x_sh/Makefile       Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/x_sh/Makefile       Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2000/04/11 12:45:18 christos Exp $
+#      $NetBSD: Makefile,v 1.12 2000/05/18 00:43:08 matt Exp $
 # Build a smaller sh (e.g. for boot media)
 
 .include <bsd.own.mk>
@@ -8,6 +8,7 @@
 SRCDIR= ${.CURDIR}/../../../bin/sh
 
 CPPFLAGS+= -I${SRCDIR} -DSMALL
+COPTS+= -Os
 
 .PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf ${SRCDIR}/../../bin/test
 
diff -r 2d4bef089881 -r c200ffc40cb0 distrib/utils/zcat/Makefile
--- a/distrib/utils/zcat/Makefile       Wed May 17 23:35:44 2000 +0000
+++ b/distrib/utils/zcat/Makefile       Thu May 18 00:43:05 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1999/06/21 01:19:38 cgd Exp $
+# $NetBSD: Makefile,v 1.9 2000/05/18 00:43:09 matt Exp $
 # Small zcat (i.e. for install media)
 #
 # Note: gzio.c is compiled here so that crunchgen will assume
@@ -12,6 +12,7 @@
 
 SRCDIR= ${.CURDIR}/../../../lib/libz
 CPPFLAGS+= -I${SRCDIR}
+COPTS+= -Os
 
 DPADD+=        ${LIBZ}
 LDADD+=        -lz



Home | Main Index | Thread Index | Old Index