[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] [patch] port-specific elf dirs not added to sysdirs list when ports add-on is outside tree
- To: patches@xxxxxxxxxx
- Subject: [patches] [patch] port-specific elf dirs not added to sysdirs list when ports add-on is outside tree
- From: c1de0x <c1de0x@xxxxxxxxx>
- Date: Wed, 27 Jan 2010 18:25:01 +0200
Hi,
Below is a patch which is needed when trying to cross-compile for an elf target (e.g. mips-linux), where the ports tree is outside of the libc tree, and is configured using
--enable-add-ons=/path/to/ports
Enjoy,
c1
Index: libc/configure.in
===================================================================
--- libc/configure.in (revision 9744)
+++ libc/configure.in (working copy)
@@ -733,6 +733,9 @@
for d in $add_ons_pfx ''; do
for m in $mach; do
if test -d $srcdir/${d}sysdeps$m/elf; then
+ elf_dirs="$elf_dirs $srcdir/${d}sysdeps$m/elf"
+ fi
+ if test -d ${d}sysdeps$m/elf; then
elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
fi
done