summaryrefslogtreecommitdiff
path: root/toolchain/glibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-20 09:59:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-20 09:59:43 +0100
commit9db6f01aedebd0ace3926251ae2dbbc170cdacf7 (patch)
treeec99f71047f2e45251b0cfbcc09611ff4a97e60f /toolchain/glibc/Makefile
parent1d0c46287d508236506ee59417e8da05c0cee3e5 (diff)
parentdb287e1579a46cdc8d8d6e1ef10455d2b1f10f22 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'toolchain/glibc/Makefile')
-rw-r--r--toolchain/glibc/Makefile11
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: