From ab8c3519dd3ac7c20b8f4d2e25e9a05179d3963bdbfa3070d8534375d720f868 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 5 Jun 2007 14:30:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/makedumpfile?expand=0&rev=7 --- makedumpfile-coptflags.diff | 21 +++++++++++++++++---- makedumpfile.changes | 7 +++++++ makedumpfile.spec | 6 +++++- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/makedumpfile-coptflags.diff b/makedumpfile-coptflags.diff index 83e10d2..08df06e 100644 --- a/makedumpfile-coptflags.diff +++ b/makedumpfile-coptflags.diff @@ -1,7 +1,11 @@ ---- Makefile-dist 2007-01-09 12:57:28.000000000 +0100 -+++ Makefile 2007-01-09 12:57:30.000000000 +0100 -@@ -4,9 +4,10 @@ - DATE=22 December 2006 +--- + Makefile | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +--- a/Makefile ++++ b/Makefile +@@ -4,9 +4,10 @@ VERSION=1.1.3 + DATE=13 April 2007 CC = gcc -CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \ @@ -13,3 +17,12 @@ ARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \ -e s/arm.*/arm/ -e s/sa110/arm/ \ +@@ -30,7 +31,7 @@ $(OBJ_ARCH): $(SRC_ARCH) + $(CC) $(CFLAGS_ARCH) -c -o ./$@ ./$(@:.o=.c) + + makedumpfile: $(SRC) $(OBJ_ARCH) +- $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -static -ldw -lelf -lz ++ $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -Wl,-Bstatic -ldw -lelf -lz -Wl,-Bdynamic + + clean: + rm -f $(OBJ) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz diff --git a/makedumpfile.changes b/makedumpfile.changes index dfbadf5..9bc5881 100644 --- a/makedumpfile.changes +++ b/makedumpfile.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 5 16:01:34 CEST 2007 - bwalle@suse.de + +- link dynamically against libc to decrease binary size (initrd + has already libc included) but leave the other libraries linked + statically + ------------------------------------------------------------------- Mon May 21 12:25:28 CEST 2007 - tiwai@suse.de diff --git a/makedumpfile.spec b/makedumpfile.spec index 913019f..504e662 100644 --- a/makedumpfile.spec +++ b/makedumpfile.spec @@ -15,7 +15,7 @@ BuildRequires: gcc-c++ libdw-devel zlib-devel %define elfutils_version 0.124 License: GNU General Public License (GPL) Version: 1.1.3 -Release: 9 +Release: 14 Summary: Partial kernel dump Group: System/Kernel URL: https://sourceforge.net/projects/makedumpfile/ @@ -59,6 +59,10 @@ install -c -m 0644 makedumpfile.8 $RPM_BUILD_ROOT%{_mandir}/man8 /bin/* %changelog +* Tue Jun 05 2007 - bwalle@suse.de +- link dynamically against libc to decrease binary size (initrd + has already libc included) but leave the other libraries linked + statically * Mon May 21 2007 - tiwai@suse.de - use external elfutils packages. * Fri Apr 13 2007 - tiwai@suse.de