diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2009-10-17 13:28:17 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-10-17 13:28:17 -0700 |
commit | c94314fa618c682646c07ddd914a5abb77346273 (patch) | |
tree | 6a67bc45a20f532bd698c0438140ba24945b7b14 /Rules.mak | |
parent | e58798e107d652644629a1daaa95d76430808d53 (diff) |
build system changes needed for nptl
* add include dir for nptl
* pregen nptl headers
* add include dir to pick up subarchs
* a few tweaks for test/* to match state of the code
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -225,7 +225,7 @@ CPU_CFLAGS-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += -msep-data CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL CPU_LDFLAGS-$(ARCH_BIG_ENDIAN) += -Wl,-EB -PICFLAG-y := -fPIC +PICFLAG-y := -fPIC -DPIC PICFLAG-$(UCLIBC_FORMAT_FDPIC_ELF) := -mfdpic PICFLAG := $(PICFLAG-y) PIEFLAG_NAME:=-fPIE @@ -577,9 +577,9 @@ endif LDFLAGS:=$(LDFLAGS_NOSTRIP) -Wl,-z,defs ifeq ($(DODEBUG),y) -CFLAGS += -O0 -g3 +CFLAGS += -O0 -g3 -DDEBUG else -CFLAGS += $(OPTIMIZATION) $(XARCH_CFLAGS) +CFLAGS += $(OPTIMIZATION) $(XARCH_CFLAGS) -DNDEBUG endif ifeq ($(DOSTRIP),y) LDFLAGS += -Wl,-s @@ -620,6 +620,7 @@ PTDIR := libpthread/$(PTNAME) # set up system dependencies include dirs (NOTE: order matters!) ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) PTINC:= -I$(top_srcdir)$(PTDIR) \ + -I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/$(TARGET_SUBARCH) \ -I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \ -I$(top_srcdir)$(PTDIR)/sysdeps/$(TARGET_ARCH) \ -I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux \ @@ -659,6 +660,7 @@ else PTNAME := PTINC := endif +CFLAGS += -I$(top_srcdir)libc/sysdeps/linux/common CFLAGS += -I$(KERNEL_HEADERS) #CFLAGS += -iwithprefix include-fixed -iwithprefix include |