/[vps]/dietlibc/patches/0.30_pre20060501-r1/01_all_nostrip.patch
Gentoo

Contents of /dietlibc/patches/0.30_pre20060501-r1/01_all_nostrip.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (show annotations) (download)
Tue May 2 15:11:48 2006 UTC (8 years, 5 months ago) by phreak
File size: 3400 byte(s)
Starting -r1 patch series for the cvs snapshot, that should fix my diet.ld.conf "bug"
1 Index: dietlibc-0.30_pre20060501/libpthread/Makefile
2 ===================================================================
3 --- dietlibc-0.30_pre20060501.orig/libpthread/Makefile
4 +++ dietlibc-0.30_pre20060501/libpthread/Makefile
5 @@ -45,7 +45,6 @@ PWD=$(shell pwd)
6
7 %.o: %.c
8 $(CROSS)$(CC) -I. -Iinclude $(CFLAGS) -c $<
9 -# $(CROSS)strip -x -R .comment -R .note $@
10
11 libpthread.a: $(PTHREAD_OBJS)
12 $(CROSS)ar cr $@ $^
13 Index: dietlibc-0.30_pre20060501/Makefile
14 ===================================================================
15 --- dietlibc-0.30_pre20060501.orig/Makefile
16 +++ dietlibc-0.30_pre20060501/Makefile
17 @@ -156,7 +156,6 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
18
19 $(OBJDIR)/%.o: %.c
20 tcc -I. -Iinclude -c $< -o $@
21 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
22 else
23 $(OBJDIR)/pstart.o: start.S
24 $(CROSS)$(CC) $(INC) $(CFLAGS) -DPROFILING -c $< -o $@
25 @@ -166,11 +165,9 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
26
27 $(OBJDIR)/pthread_%.o: libpthread/pthread_%.c
28 $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@
29 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
30
31 $(OBJDIR)/%.o: %.c
32 $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@
33 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
34 endif
35
36 ifeq ($(shell $(CC) -v 2>&1 | grep "gcc version"),gcc version 4.0.0)
37 @@ -241,18 +238,15 @@ $(PICODIR)/%.o: %.S $(ARCH)/syscalls.h
38
39 $(PICODIR)/pthread_%.o: libpthread/pthread_%.c
40 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
41 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
42
43 $(PICODIR)/%.o: %.c
44 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
45 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
46
47 $(PICODIR)/dstart.o: start.S
48 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
49
50 $(PICODIR)/dyn_so_start.o: dyn_start.c
51 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -D__DYN_LIB_SHARED -c $< -o $@
52 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
53
54 DYN_LIBC_PIC = $(LIBOBJ) $(LIBSTDIOOBJ) $(LIBUGLYOBJ) \
55 $(LIBCRUFTOBJ) $(LIBCRYPTOBJ) $(LIBSHELLOBJ) $(LIBREGEXOBJ)
56 @@ -301,19 +295,15 @@ CURNAME=$(notdir $(shell pwd))
57
58 $(OBJDIR)/diet: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
59 $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(HOME)\" -DVERSION=\"$(VERSION)\" -lgcc
60 - $(CROSS)strip -R .comment -R .note $@
61
62 $(OBJDIR)/diet-i: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
63 $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(prefix)\" -DVERSION=\"$(VERSION)\" -DINSTALLVERSION -lgcc
64 - $(CROSS)strip -R .comment -R .note $@
65
66 $(PICODIR)/diet-dyn: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
67 $(LD_UNSET) $(CROSS)$(CC) -isystem include $(CFLAGS) -fPIC -nostdlib -o $@ $^ -DDIETHOME=\"$(HOME)\" -D__DYN_LIB -DVERSION=\"$(VERSION)\" -L$(PICODIR) -lc -lgcc $(PICODIR)/dyn_stop.o -Wl,-dynamic-linker=$(HOME)/$(PICODIR)/libdl.so
68 - $(CROSS)strip -R .command -R .note $@
69
70 $(PICODIR)/diet-dyn-i: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
71 $(LD_UNSET) $(CROSS)$(CC) -isystem include $(CFLAGS) -fPIC -nostdlib -o $@ $^ -DDIETHOME=\"$(prefix)\" -D__DYN_LIB -DVERSION=\"$(VERSION)\" -L$(PICODIR) -lc -lgcc $(PICODIR)/dyn_stop.o -Wl,-dynamic-linker=$(ILIBDIR)/libdl.so -DINSTALLVERSION
72 - $(CROSS)strip -R .command -R .note $@
73
74 $(OBJDIR)/djb: $(OBJDIR)/compile $(OBJDIR)/load
75

  ViewVC Help
Powered by ViewVC 1.1.20