Fix building ltrace on PowerPC.
On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote:
ltrace wouldn't build on PowerPC because in the
sysdeps/linux-gnu directory in the ltrace source tree
the powerpc directory is called ppc. I added some code
in 400-ltrace.sh to create a symlink for it so it will
build now.
Patch slightly modified by me before applying.
/trunk/scripts/build/debug/400-ltrace.sh | 5 5 0 0 +++++
1 file changed, 5 insertions(+)
2 # Makefile for crosstool-NG.
3 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
5 # Don't print directory as we descend into them
6 # Don't use built-in rules, we know what we're doing
7 MAKEFLAGS += --no-print-directory --no-builtin-rules
9 # Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
10 # a truly POSIX-conforming shell, ash in this case. This is not so good
11 # as we, smart (haha!) developers (as smart we ourselves think we are),
12 # got used to bashisms, and are enclined to easiness... So force use of
13 # bash. (Note: this is ugly, but ./configure checks for it).
14 export SHELL=/bin/bash
16 # This is where ct-ng is:
17 export CT_NG:=$(lastword $(MAKEFILE_LIST))
18 # and this is where we're working in:
19 export CT_TOP_DIR:=$(shell pwd)
21 # Paths and values set by ./configure
22 # Don't bother to change it other than with a new ./configure!
23 export CT_LIB_DIR:=@@CT_LIBDIR@@
24 export CT_DOC_DIR:=@@CT_DOCDIR@@
26 # This is crosstool-NG version string
27 export CT_VERSION:=@@CT_VERSION@@
32 export CT_STOP:=$(STOP)
33 export CT_RESTART:=$(RESTART)
37 ifeq ($(strip $(origin V)),command line)
38 ifeq ($(strip $(V)),0)
42 ifeq ($(strip $(V)),1)
46 ifeq ($(strip $(V)),2)
61 help:: help-head help-config help-samples help-build help-clean help-distrib help-env help-tail
64 @echo 'See below for a list of available actions, listed by category:'
68 @echo 'Configuration actions:'
72 @echo 'Preconfigured toolchains (#: force number of // jobs):'
76 @echo 'Build actions (#: force number of // jobs):'
80 @echo 'Clean actions:'
84 @echo 'Distribution actions:'
88 @echo 'Environement variables (see @@CT_DOCDIR@@/overview.txt):'
92 @echo 'Use action "config" or "menuconfig" to configure crosstool-NG'
93 @echo 'Use action "build" to build your toolchain'
94 @echo 'Use action "version" to see the version'
95 @echo 'See "man 1 ct-ng" for some help as well'
98 @echo ' build[.#] - Build the currently configured toolchain'
101 @echo ' clean - Remove generated files'
102 @echo ' distclean - Remove generated files, configuration and build directories'
104 include $(CT_LIB_DIR)/config/config.mk
105 include $(CT_LIB_DIR)/kconfig/kconfig.mk
106 include $(CT_LIB_DIR)/steps.mk
107 include $(CT_LIB_DIR)/samples/samples.mk
108 include $(CT_LIB_DIR)/scripts/scripts.mk
111 @echo ' tarball - Build a tarball of the configured toolchain'
118 @echo ' There is no existing .config file!'
123 $(SILENT)$(CT_LIB_DIR)/scripts/crosstool-NG.sh
126 $(SILENT)$(MAKE) -rf $(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
130 # @$(CT_LIB_DIR)/scripts/tarball.sh
132 @echo 'Tarball creation disabled for now... Sorry.'
137 @echo 'This is crosstool-NG version $(CT_VERSION)'
139 @echo 'Copyright (C) 2008 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>'
140 @echo 'This is free software; see the source for copying conditions.'
141 @echo 'There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A'
142 @echo 'PARTICULAR PURPOSE.'
147 @$(ECHO) " CLEAN log"
148 $(SILENT)rm -f log.* .config.* ..config*
152 @$(ECHO) " CLEAN .config"
153 $(SILENT)rm -f .config .config.* ..config*
154 @$(ECHO) " CLEAN targets"
155 $(SILENT)chmod -R u+w targets >/dev/null 2>&1 || true
156 $(SILENT)rm -rf targets