diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-19 00:36:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-19 00:36:11 +0100 |
commit | aa4ab58940fe84dfd79b230407b0eac2fd10a80b (patch) | |
tree | a011f5e23804dfcc7f4a3749e9abd9b7613d582e /toolchain/glibc/Makefile | |
parent | 2440d844c6f493a8439c493adca88caf5e0da58f (diff) |
first try to get eglibc/glibc based toolchain working
when HOST == TARGET eglibc/glibc toolchain does not compile
correctly. With this patches at least eglibc compiles fine.
There still exist a problem with glibc. Someone should check
what diff in eglibc make the build work :}
Diffstat (limited to 'toolchain/glibc/Makefile')
-rw-r--r-- | toolchain/glibc/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile index 2b3fc252f..978794dc9 100644 --- a/toolchain/glibc/Makefile +++ b/toolchain/glibc/Makefile @@ -57,11 +57,22 @@ $(WRKBUILD)/.headers_configure: touch $@ $(WRKBUILD)/.headers: $(WRKBUILD)/.headers_configure + mkdir -p $(TOOLCHAIN_SYSROOT)/usr/lib $(MAKE) -C $(GLIBC_BUILD_DIR_INITIAL) \ cross-compiling=yes \ install_root=$(TOOLCHAIN_SYSROOT) \ install-headers touch $(TOOLCHAIN_SYSROOT)/usr/include/gnu/stubs.h + PATH='${TARGET_PATH}' \ + $(MAKE) -C $(GLIBC_BUILD_DIR_INITIAL) \ + csu/subdir_lib + ( cd $(GLIBC_BUILD_DIR_INITIAL); \ + $(CP) csu/crt1.o csu/crti.o csu/crtn.o \ + $(TOOLCHAIN_SYSROOT)/usr/lib \ + ); + PATH='${TARGET_PATH}' \ + $(TARGET_CC) -nostdlib -nostartfiles -shared -x c /dev/null \ + -o $(TOOLCHAIN_SYSROOT)/usr/lib/libc.so touch $@ $(WRKBUILD)/.configured: |