]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/toolchain/binutils/binutils.nm
naoki: Initial checkin.
[ipfire-3.x.git] / pkgs / toolchain / binutils / binutils.nm
1
2 PKG_TOOLCHAIN_DEPS += binutils-static glibc
3
4 include ../binutils-static/binutils-static.nm
5
6 $(STAGE_BUILD): $(STAGE_PREPARE)
7 @$(PRE_BUILD)
8
9 cd $(DIR_SRC)/binutils-build && \
10 ../$(THISAPP)/configure \
11 $(CONFIGURE_ARCH) \
12 --target=$(TARGET) \
13 --prefix=$(TOOLS_DIR) \
14 --with-lib-path=$(TOOLS_DIR)/lib \
15 --disable-nls \
16 --enable-shared \
17 --disable-werror
18
19 cd $(DIR_SRC)/binutils-build && make tooldir=$(TOOLS_DIR) $(PARALLELISMFLAGS)
20
21 @$(POST_BUILD)
22
23
24 $(STAGE_INSTALL): $(STAGE_BUILD)
25 @$(PRE_INSTALL)
26
27 cd $(DIR_SRC)/binutils-build && make tooldir=$(TOOLS_DIR) install
28
29 cd $(DIR_SRC)/binutils-build && make -C ld clean
30 cd $(DIR_SRC)/binutils-build && make -C ld LIB_PATH=/lib:/usr/lib
31 cd $(DIR_SRC)/binutils-build && cp -v ld/.libs/ld-new $(TOOLS_DIR)/bin
32
33 @$(POST_INSTALL)