← Commit list

d1968672e

Rob Landley
Rob Landley
2006-03-24
SOURCE BUG Duration: 14s

Subject

When cross-compiling, the install directory for shared libraries has to come from gcc (target machine), not uname (host machine).

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/install.sh+6 -5
@@ -18,11 +18,12 @@ esac
if [ "$DO_INSTALL_LIBS" != "n" ]; then
# get the target dir for the libs
- # This is an incomplete/incorrect list for now
- case $(uname -m) in
- x86_64|ppc64*|sparc64*|ia64*|hppa*64*|s390x*) libdir=/lib64 ;;
- *) libdir=/lib ;;
- esac
+ # assume it starts with lib
+ libdir=$($CC -print-file-name=libc.so | \
+ sed -n 's%^.*\(/lib[^\/]*\)/libc.so%\1%p')
+ if test -z "$libdir"; then
+ libdir=/lib
+ fi
mkdir -p $prefix/$libdir || exit 1
for i in $DO_INSTALL_LIBS; do