SPECS (AC-branch): glibc.spec - removed fprintf/fopen from postshe...

glen glen at pld-linux.org
Fri Jun 17 19:32:49 CEST 2005


Author: glen                         Date: Fri Jun 17 17:32:49 2005 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- removed fprintf/fopen from postshell.c, saved 7k for the static program

---- Files affected:
SPECS:
   glibc.spec (1.583.2.19 -> 1.583.2.20) 

---- Diffs:

================================================================
Index: SPECS/glibc.spec
diff -u SPECS/glibc.spec:1.583.2.19 SPECS/glibc.spec:1.583.2.20
--- SPECS/glibc.spec:1.583.2.19	Wed Jun 15 13:39:32 2005
+++ SPECS/glibc.spec	Fri Jun 17 19:32:41 2005
@@ -78,7 +78,7 @@
 Summary(uk):	GNU libc ×ĹŇÓŚ§ 2.3
 Name:		glibc
 Version:	2.3.5
-Release:	3.1
+Release:	3.2
 Epoch:		6
 License:	LGPL
 Group:		Libraries
@@ -97,6 +97,7 @@
 # Source6-md5:	6159f0a9b6426b5f6fc1b0d8d21b9b76
 Source7:	%{name}-localedb-gen
 Source8:	%{name}-LD-path.c
+Source9:	postshell.c
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-pl.po-update.patch
 Patch2:		%{name}-pld.patch
@@ -104,7 +105,6 @@
 Patch4:		%{name}-linuxthreads-lock.patch
 Patch5:		%{name}-pthread_create-manpage.patch
 Patch6:		%{name}-paths.patch
-Patch7:		%{name}-postshell.patch
 Patch8:		%{name}-missing-nls.patch
 Patch9:		%{name}-java-libc-wait.patch
 Patch10:	%{name}-lthrds_noomit.patch
@@ -782,7 +782,6 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
-%patch7 -p1
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
@@ -880,11 +879,9 @@
 done
 %endif
 
-diet -Os %{__cc} %{SOURCE8} %{rpmcflags} -static -o glibc-postinst
 # compiling static using diet vs glibc saves 400k
-# TODO: use SOURCEX
-# TODO2: remove fprintf/fopen from postshell.c to save 7kb?
-diet -Os %{__cc} elf/postshell.c %{rpmcflags} -static -o postshell
+diet -Os %{__cc} %{SOURCE9} %{rpmcflags} -static -o postshell
+diet -Os %{__cc} %{SOURCE8} %{rpmcflags} -static -o glibc-postinst
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -1510,6 +1507,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.583.2.20  2005/06/17 17:32:41  glen
+- removed fprintf/fopen from postshell.c, saved 7k for the static program
+
 Revision 1.583.2.19  2005/06/15 11:39:32  glen
 - add code that makes it possible do major upgrade (glibc 2.2 -> glibc 2.3) on systems with /lib/%{arch}
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/glibc.spec?r1=1.583.2.19&r2=1.583.2.20&f=u




More information about the pld-cvs-commit mailing list