Only append -L and -Wl,-rpath-link flags if the command line contains -l, -L, -shared or -static flags;
this is needed to suppress "-rpath-link: linker input file unused because linking not done" on each cc invocation.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29946 3c298f89-4303-0410-b956-a3cf2f4a3e73
Add a new --config option to generate a .config from a given toolchain,
this allows for easy integration of external toolchains, e.g.
./scripts/ext-toolchain.sh --toolchain /opt/mips-2011.03 --cflags "-muclibc" --config atheros
to setup a ready-to-compile atheros target using the external CodeSourcery toolchain.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29780 3c298f89-4303-0410-b956-a3cf2f4a3e73
- use GCC's own idea of the target name (-dumpmachine)
- display help if called without args
- add copyright foo
- remove some leftover flag handling code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29769 3c298f89-4303-0410-b956-a3cf2f4a3e73
The patch-specs.sh utility dumps the GCC specs of a given toolchain
and modifies them to always include $STAGING_DIR in the link and
compiler command lines, this makes most -I and -L flags unnecessary
and lets the compiler automatically find libraries and headers in
the staging dir, also solves the majority of -rpath issues.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29767 3c298f89-4303-0410-b956-a3cf2f4a3e73
The ext-toolchain.sh utility script implements various external toolchain tasks:
* Testing of available features, like c++, soft-float or ipv6 support
* Finding the libc implementation (uclibc or eglibc/glibc)
* Inferring the GNU target name
* Finding shared objects for packaging (libc, libpthread, ...)
* Finding executables for packaging (ldd, gdbserver, ...)
* Generating wrapper scripts for toolchain commands
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29765 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/config/.gitignore aims to avoid checking binaries in to git.
Unfortunately it also omits conf.c, confdata.c, and all source files
in lxdialog. An OpenWRT tree pulled from a git repository will not
build, and I suspect this was not the intention.
Signed-off-by: Denton Gentry <denny@geekhold.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27244 3c298f89-4303-0410-b956-a3cf2f4a3e73
path expansion was broken due to a badly quoted *
Signed-of-by: Benjamin Cama <benoar@dolka.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26391 3c298f89-4303-0410-b956-a3cf2f4a3e73
saves a few kb and gets rid of unused not exported functions as well
should also improve the reliability of mklibs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25800 3c298f89-4303-0410-b956-a3cf2f4a3e73
Since the output of ipkg-make-index.sh is unconditionally used to create
the Packages file, sending the errors into this file is unacceptable
(both because they are not shown to users and because they make an
invalid Packages file).
For incorrect invocation, write to stderr.
For errors from which, send to /dev/null with stdout.
Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25677 3c298f89-4303-0410-b956-a3cf2f4a3e73
these files contain only the target selection and options that differ from the default settings
this makes it much easier to review .config files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25231 3c298f89-4303-0410-b956-a3cf2f4a3e73
The SPE FPU is ABI-incompatible with the regular powerpc FPU,
this needs to be reflected in the toolchain target name.
Fixes floating point crashes in user space
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25018 3c298f89-4303-0410-b956-a3cf2f4a3e73