diff options
Diffstat (limited to 'mdk-stage1/Makefile.common')
-rw-r--r-- | mdk-stage1/Makefile.common | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common index 34c010905..629d27619 100644 --- a/mdk-stage1/Makefile.common +++ b/mdk-stage1/Makefile.common @@ -27,21 +27,7 @@ else F = NEWT endif -# diet libc syscalls are broken on mips -ifneq (mips, $(ARCH)) -# diet libc eabi support is mostly broken -ifneq (arm, $(ARCH)) -DIET = $(shell test -x /usr/bin/diet && echo diet) -endif -endif - - -ifeq ($(DIET), diet) - #- default lib is dietlibc (honoured by main Makefile whenever possible) -L = DIETLIBC -else L = GLIBC -endif ifdef DEBUG OPTFLAGS = -g -DDEBUG @@ -58,15 +44,9 @@ CFLAGS += -Werror endif endif -DIETLIBC_INCLUDES = -I/usr/lib/dietlibc/include -I. -DIETLIBC_LIBC = /usr/lib/dietlibc/lib-$(ARCH)/libcompat.a -GLIBC_INCLUDES = -I. -INCLUDES = $($(L)_INCLUDES) - -GLIBC_LDFLAGS = -static -LDFLAGS = $($(L)_LDFLAGS) +INCLUDES = -I. -STAGE1_LIBC = $($(L)_LIBC) +LDFLAGS = ifdef DEBUG STRIPCMD = echo not stripping |