/[vps]/dietlibc/patches/0.30-r1/005_all_Makefile.patch
Gentoo

Contents of /dietlibc/patches/0.30-r1/005_all_Makefile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 438 - (show annotations) (download)
Mon Aug 28 16:49:48 2006 UTC (11 years, 9 months ago) by phreak
File size: 3315 byte(s)
Renaming, merging with 01_all_nostrip.patch
1 Index: dietlibc-0.30/Makefile
2 ===================================================================
3 --- dietlibc-0.30.orig/Makefile
4 +++ dietlibc-0.30/Makefile
5 @@ -100,7 +100,6 @@ all: $(WHAT)
6
7 profiling: $(OBJDIR)/libgmon.a $(OBJDIR)/pstart.o
8
9 -CFLAGS=-pipe -nostdinc
10 CROSS=
11
12 CC=gcc
13 @@ -132,10 +131,6 @@ include $(ARCH)/Makefile.add
14
15 LIBMATHOBJ=$(patsubst %,$(OBJDIR)/%,$(LIBMATH))
16
17 -ifeq ($(CFLAGS),-pipe -nostdinc)
18 -CFLAGS+=-O -fomit-frame-pointer
19 -endif
20 -
21 ifneq ($(DEBUG),)
22 CFLAGS = -g
23 COMMENT = :
24 @@ -161,7 +156,6 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
25
26 $(OBJDIR)/%.o: %.c
27 tcc -I. -Iinclude -c $< -o $@
28 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
29 else
30 $(OBJDIR)/pstart.o: start.S
31 $(CROSS)$(CC) $(INC) $(CFLAGS) -DPROFILING -c $< -o $@
32 @@ -171,11 +165,9 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
33
34 $(OBJDIR)/pthread_%.o: libpthread/pthread_%.c
35 $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@
36 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
37
38 $(OBJDIR)/%.o: %.c
39 $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@ -D__dietlibc__
40 - $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
41 endif
42
43 ifeq ($(shell $(CC) -v 2>&1 | grep "gcc version"),gcc version 4.0.0)
44 @@ -246,18 +238,15 @@ $(PICODIR)/%.o: %.S $(ARCH)/syscalls.h
45
46 $(PICODIR)/pthread_%.o: libpthread/pthread_%.c
47 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
48 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
49
50 $(PICODIR)/%.o: %.c
51 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
52 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
53
54 $(PICODIR)/dstart.o: start.S
55 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
56
57 $(PICODIR)/dyn_so_start.o: dyn_start.c
58 $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -D__DYN_LIB_SHARED -c $< -o $@
59 - $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
60
61 DYN_LIBC_PIC = $(LIBOBJ) $(LIBSTDIOOBJ) $(LIBUGLYOBJ) \
62 $(LIBCRUFTOBJ) $(LIBCRYPTOBJ) $(LIBSHELLOBJ) $(LIBREGEXOBJ)
63 @@ -306,19 +295,15 @@ CURNAME=$(notdir $(shell pwd))
64
65 $(OBJDIR)/diet: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
66 $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(HOME)\" -DVERSION=\"$(VERSION)\" -lgcc
67 - $(CROSS)strip -R .comment -R .note $@
68
69 $(OBJDIR)/diet-i: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
70 $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(prefix)\" -DVERSION=\"$(VERSION)\" -DINSTALLVERSION -lgcc
71 - $(CROSS)strip -R .comment -R .note $@
72
73 $(PICODIR)/diet-dyn: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
74 $(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
75 - $(CROSS)strip -R .command -R .note $@
76
77 $(PICODIR)/diet-dyn-i: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
78 $(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
79 - $(CROSS)strip -R .command -R .note $@
80
81 $(OBJDIR)/djb: $(OBJDIR)/compile $(OBJDIR)/load
82

  ViewVC Help
Powered by ViewVC 1.1.20