From a217fc80b29080dae963bb15051df023de36ce39 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 10 Jan 2011 10:59:12 +0100 Subject: add LTO support to toolchain settings. Cleanup SYSROOT mess. - just use on sysroot directory for toolchain. - add missing patches from previos commit. (rpath/cflags cleanup) --- toolchain/libelf/Makefile | 31 +++++++++++++++++++++++++++++++ toolchain/libelf/Makefile.inc | 8 ++++++++ 2 files changed, 39 insertions(+) create mode 100644 toolchain/libelf/Makefile create mode 100644 toolchain/libelf/Makefile.inc (limited to 'toolchain/libelf') diff --git a/toolchain/libelf/Makefile b/toolchain/libelf/Makefile new file mode 100644 index 000000000..485978cf0 --- /dev/null +++ b/toolchain/libelf/Makefile @@ -0,0 +1,31 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk +include Makefile.inc +include ../rules.mk +include ${TOPDIR}/mk/buildhlp.mk + +ifeq (${ADK_MAKE_PARALLEL},y) +LIBELF_MAKEOPTS+= -j${ADK_MAKE_JOBS} +endif + +$(WRKBUILD)/.headers: +$(WRKBUILD)/.configured: + (cd $(WRKBUILD); \ + $(WRKBUILD)/configure \ + --prefix=$(STAGING_HOST_DIR) \ + --disable-shared \ + --enable-static \ + ); + touch $@ + +$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured + $(MAKE) ${LIBELF_MAKEOPTS} -C $(WRKBUILD) all + touch $@ + +$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled + $(MAKE) -C $(WRKBUILD) install + touch $@ + +include ${TOPDIR}/mk/toolchain.mk diff --git a/toolchain/libelf/Makefile.inc b/toolchain/libelf/Makefile.inc new file mode 100644 index 000000000..66ca9fd2c --- /dev/null +++ b/toolchain/libelf/Makefile.inc @@ -0,0 +1,8 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +PKG_NAME:= libelf +PKG_VERSION:= 0.8.13 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 4136d7b4c04df68b686570afa26988ac +PKG_SITES:= http://www.mr511.de/software/ -- cgit v1.2.3