Browse Source

djb-config: Improved runit/djb-config to s/gcc/$CC/ in conf-cc and conf-ld when cross compiling

user/amery/cross
Alejandro Mery 17 years ago
parent
commit
d631f71295
  1. 10
      base/runit/djb-config

10
base/runit/djb-config

@ -68,6 +68,16 @@ if [ "$createdocs" != "0" ]; then
hook_add postdoc 2 'pkg_djb_installdoc $pkg_djb_hierarchy'
fi
if atstage cross; then
# adjust conf-cc and conf-ld files for using the cross-compiler
pkg_djb_crosscc() {
echo_warning "Adjusting config files for cross-compiling"
sed -i "s,gcc,$CC,g" \
src/conf-cc src/conf-ld
}
hook_add premake 5 "pkg_djb_crosscc"
fi
# custmain
#
custmain="pkg_djb_main"

Loading…
Cancel
Save