diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-21 18:56:43 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-21 18:56:43 +0200 |
commit | eb3c2cf8238c2e09666f2bf4c46389ee4ff80f75 (patch) | |
tree | d9692f63cb6127e54e02b3fafcf306e9898e081f /package/glibc/Makefile | |
parent | f4d12bd9992cae325422f05d92cc79b162b2e4fc (diff) | |
parent | feb521846269734c771e68e5406662f80d7dd2a5 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/glibc/Makefile')
-rw-r--r-- | package/glibc/Makefile | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/package/glibc/Makefile b/package/glibc/Makefile index 595ac3eda..9cd8748b8 100644 --- a/package/glibc/Makefile +++ b/package/glibc/Makefile @@ -11,6 +11,22 @@ PKG_OPTS:= noremove include $(TOPDIR)/mk/package.mk +GLIBC_CONFOPTS:= \ + --build=$(GNU_HOST_NAME) \ + --host=$(REAL_GNU_TARGET_NAME) \ + --with-headers=$(TOOLCHAIN_SYSROOT)/usr/include \ + --disable-nls \ + --disable-sanity-checks \ + --disable-nls \ + --without-cvs \ + --disable-profile \ + --disable-debug \ + --without-gd \ + --with-__thread \ + --with-tls \ + --enable-kernel="2.6.0" \ + --enable-add-ons + $(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) do-extract: @@ -35,14 +51,17 @@ endif $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) ARCH=$(ARCH) V=1 \ INSTALL_HDR_PATH=$(IDIR_GLIBC_DEV)/usr \ headers_install - $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/${PKG_NAME}-${PKG_VERSION} \ - PREFIX=$(IDIR_GLIBC_DEV)/ \ - DEVEL_PREFIX=/usr/ \ - RUNTIME_PREFIX=$(IDIR_GLIBC_DEV)/ \ - HOSTCC="$(HOSTCC)" \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ - install_headers - @find $(IDIR_GLIBC_DEV) -name .install -delete - @find $(IDIR_GLIBC_DEV) -name ..install.cmd -delete + (cd $(WRKBUILD); \ + $(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/configure \ + --prefix=/usr \ + --with-sysroot=$(IDIR_GLIBC_DEV) \ + ${GLIBC_CONFOPTS} \ + ); + $(MAKE) -C $(WRKBUILD) \ + cross-compiling=yes \ + install_root=$(IDIR_GLIBC_DEV) \ + install-headers + touch $(IDIR_GLIBC_DEV)/usr/include/gnu/stubs.h + touch $(IDIR_GLIBC_DEV)/usr/include/bits/stdio_lim.h include ${TOPDIR}/mk/pkg-bottom.mk |