mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
Some makefile fixes to allow compiling with ucLibc (stuff turned off
by default of course). -Erik
This commit is contained in:
parent
339b892313
commit
28c88a9430
10
Makefile
10
Makefile
@ -34,7 +34,8 @@ DOSTATIC = false
|
|||||||
# To compile vs an alternative libc, you may need to use/adjust
|
# To compile vs an alternative libc, you may need to use/adjust
|
||||||
# the following lines to meet your needs. This is how I did it...
|
# the following lines to meet your needs. This is how I did it...
|
||||||
#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux
|
#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux
|
||||||
#LDFLAGS+=-nostdlib -L/home/andersen/CVS/libc.a
|
#LDFLAGS+=-nostdlib
|
||||||
|
#LIBRARIES = /home/andersen/CVS/uC-libc/libc.a
|
||||||
|
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
@ -51,12 +52,12 @@ endif
|
|||||||
|
|
||||||
# -D_GNU_SOURCE is needed because environ is used in init.c
|
# -D_GNU_SOURCE is needed because environ is used in init.c
|
||||||
ifeq ($(DODEBUG),true)
|
ifeq ($(DODEBUG),true)
|
||||||
CFLAGS += -Wall -g -D_GNU_SOURCE
|
CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE
|
||||||
LDFLAGS =
|
LDFLAGS +=
|
||||||
STRIP =
|
STRIP =
|
||||||
else
|
else
|
||||||
CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
||||||
LDFLAGS = -s
|
LDFLAGS += -s
|
||||||
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
||||||
#Only staticly link when _not_ debugging
|
#Only staticly link when _not_ debugging
|
||||||
ifeq ($(DOSTATIC),true)
|
ifeq ($(DOSTATIC),true)
|
||||||
@ -79,7 +80,6 @@ ifndef $(PREFIX)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
LIBRARIES =
|
|
||||||
OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o
|
OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o
|
||||||
CFLAGS += -DBB_VER='"$(VERSION)"'
|
CFLAGS += -DBB_VER='"$(VERSION)"'
|
||||||
CFLAGS += -DBB_BT='"$(BUILDTIME)"'
|
CFLAGS += -DBB_BT='"$(BUILDTIME)"'
|
||||||
|
Loading…
Reference in New Issue
Block a user