summaryrefslogtreecommitdiffstats
path: root/Rules.mak
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 03:51:02 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 03:51:02 +0000
commit2d9da2f6be3e662889ef0e72759fe0f1a1495812 (patch)
tree8305337a5a2dee0085b57e970426f15c8d96dac5 /Rules.mak
parent52d5212ff513bcc37a2c146ac99a76fd93189372 (diff)
downloaduClibc-alpine-2d9da2f6be3e662889ef0e72759fe0f1a1495812.tar.bz2
uClibc-alpine-2d9da2f6be3e662889ef0e72759fe0f1a1495812.tar.xz
Merge from trunk that gives us a valid NPTL dynamic loader and the start of the new build system. I have probably another 300 and some files to go *sigh*.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak25
1 files changed, 17 insertions, 8 deletions
diff --git a/Rules.mak b/Rules.mak
index e59a57e00..1dac08c3d 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -41,7 +41,7 @@ STRIP_FLAGS ?= -x -R .note -R .comment
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
-HOSTCFLAGS = -O2 -Wall
+BUILD_CFLAGS = -O2 -Wall
#---------------------------------------------------------
@@ -60,11 +60,13 @@ LIBC := libc
SHARED_MAJORNAME := $(LIBC).so.$(MAJOR_VERSION)
UCLIBC_LDSO := ld-uClibc.so.$(MAJOR_VERSION)
NONSHARED_LIBNAME := uclibc_nonshared.a
-libc := $(top_builddir)lib/$(LIBC).so
-interp := $(top_builddir)libc/misc/internals/interp.os
+libc := $(top_builddir)lib/$(SHARED_MAJORNAME)
+interp := $(top_builddir)lib/interp.os
+ldso := $(top_builddir)lib/$(UCLIBC_LDSO)
+headers_dep := $(top_builddir)include/bits/sysnum.h
#LIBS :=$(interp) -L$(top_builddir)lib -lc
-LIBS := $(interp) -L$(top_builddir)lib $(libc)
+LIBS := $(interp) -L$(top_builddir)lib $(libc:.$(MAJOR_VERSION)=)
# Make sure DESTDIR and PREFIX can be used to install
# PREFIX is a uClibcism while DESTDIR is a common GNUism
@@ -347,14 +349,16 @@ endif
PTDIR := $(top_builddir)libpthread/$(PTNAME)
# set up system dependencies include dirs (NOTE: order matters!)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-PTINC:= -I$(PTDIR)/compat \
+PTINC:= -I$(PTDIR) \
+ -I$(PTDIR)/compat \
-I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \
-I$(PTDIR)/sysdeps/$(TARGET_ARCH) \
-I$(PTDIR)/sysdeps/unix/sysv/linux \
-I$(PTDIR)/sysdeps/pthread \
-I$(PTDIR)/sysdeps/pthread/bits \
-I$(PTDIR)/sysdeps/generic \
- -Ildso/include \
+ -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) \
+ -I$(top_srcdir)ldso/include \
-include $(PTDIR)/compat/libc-symbols.h
#
# Test for TLS if NPTL support was selected.
@@ -374,10 +378,15 @@ gcc_tls_test_fail:
@exit 1;
endif
else
-PTINC:= -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \
- -I$(PTDIR)/sysdeps/pthread
+PTINC := \
+ -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \
+ -I$(PTDIR)/sysdeps/pthread \
+ -I$(PTDIR)
endif
CFLAGS+=$(PTINC)
+else
+ PTNAME :=
+ PTINC :=
endif
# Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'