diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -68,7 +68,8 @@ ifndef $(STRIPTOOL) | |||
68 | STRIPTOOL = strip | 68 | STRIPTOOL = strip |
69 | endif | 69 | endif |
70 | 70 | ||
71 | #also to try -- use --prefix=/usr/my-libc2.0.7-stuff | 71 | # TODO: Try compiling vs other libcs. See what -nostdinc and -nostdlib do for that. |
72 | # also try --prefix=/usr/my-libc-stuff | ||
72 | 73 | ||
73 | # -D_GNU_SOURCE is needed because environ is used in init.c | 74 | # -D_GNU_SOURCE is needed because environ is used in init.c |
74 | ifeq ($(DODEBUG),true) | 75 | ifeq ($(DODEBUG),true) |
@@ -78,8 +79,6 @@ ifeq ($(DODEBUG),true) | |||
78 | else | 79 | else |
79 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 80 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE |
80 | LDFLAGS = -s | 81 | LDFLAGS = -s |
81 | #CFLAGS += -nostdinc -I/home/andersen/apps/newlib/src/newlib/libc/include -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | ||
82 | #LDFLAGS = -nostdlib -s -L/home/andersen/apps/newlib/src/newlib/libc.a | ||
83 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) | 82 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) |
84 | #Only staticly link when _not_ debugging | 83 | #Only staticly link when _not_ debugging |
85 | ifeq ($(DOSTATIC),true) | 84 | ifeq ($(DOSTATIC),true) |