summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-11 21:09:54 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-11 21:09:54 +0000
commitdd43462ee234a3d32e50f485d1d687bc979d2e21 (patch)
tree76f92070ccd13915a79ebcc7c15609b3545bb7b8 /Rules.mak
parenta09d13b8b6fcc06eb740317c2ca988d31ec6407f (diff)
More build system cleanups...
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak18
1 files changed, 5 insertions, 13 deletions
diff --git a/Rules.mak b/Rules.mak
index 70f22fe8c..2093d4285 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -70,28 +70,17 @@ endif
ARFLAGS=r
-CCFLAGS=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D_LIBC
-TARGET_CCFLAGS=--uclibc-use-build-dir $(WARNINGS) $(OPTIMIZATION) $(CPUFLAGS)
-CFLAGS=$(ARCH_CFLAGS) $(CCFLAGS) $(DEFS) $(ARCH_CFLAGS2)
-TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
-TARGET_CFLAGS=$(ARCH_CFLAGS) $(TARGET_CCFLAGS) $(DEFS) $(ARCH_CFLAGS2)
+CFLAGS=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
+ -nostdinc -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D_LIBC $(ARCH_CFLAGS)
NATIVE_CFLAGS=-O2 -Wall
ifeq ($(strip $(DODEBUG)),true)
CFLAGS += -g
- TARGET_CFLAGS += -g
LDFLAGS = -shared -nostdlib --warn-common --warn-once -z combreloc
- TARGET_LDFLAGS = --uclibc-use-build-dir -Wl,-warn-common
STRIPTOOL = /bin/true -Since_we_are_debugging
else
CFLAGS += -DNDEBUG #-fomit-frame-pointer
- TARGET_CFLAGS += -DNDEBUG #-fomit-frame-pointer
LDFLAGS = -s -shared -nostdlib --warn-common --warn-once -z combreloc
- TARGET_LDFLAGS = --uclibc-use-build-dir -s -Wl,-warn-common
-endif
-ifeq ($(strip $(DOPIC)),true)
- CFLAGS += -fPIC
- TARGET_CFLAGS += -fPIC
endif
ifeq ($(strip $(HAVE_SHARED)),true)
@@ -106,6 +95,9 @@ else
BUILD_DYNAMIC_LINKER=/lib/$(notdir $(SYSTEM_LDSO))
endif
endif
+ifeq ($(strip $(DOPIC)),true)
+ CFLAGS += -fPIC -D__PIC__
+endif
# TARGET_PREFIX is the directory under which which the uClibc runtime
# environment will be installed and used on the target system. The