forked from kiss-community/repo
busybox: Fix build when 'cc' is clang.
This simply makes busybox's build system aware of the fact that cc == clang (it usually hardcodes clang). Closes #240
This commit is contained in:
parent
eb412f08f5
commit
e8f700827d
|
@ -8,6 +8,12 @@ done
|
|||
sed -i "s#= g[c+][c+]#= ${CC:-cc}#g" Makefile
|
||||
sed -i "s#\(\$(CROSS_COMPILE)\)gcc#\1${CC:-cc}#g" Makefile
|
||||
|
||||
# Ensure that busybox's build system is aware that 'cc' may point
|
||||
# to clang rather than GCC. This is the case in non-GCC systems.
|
||||
case $("${CC:-cc}" --version) in (*clang*)
|
||||
sed -i "s&\(\$(CC),\)clang&\1$CC&g" Makefile.flags
|
||||
esac
|
||||
|
||||
# Build and install regular busybox.
|
||||
# This excludes utilities which require 'suid' to function.
|
||||
make CC="${CC:-cc}" HOSTCC="${CC:-cc}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user