Browse Source

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

crossperl
Alejandro Mery 17 years ago
parent
commit
1dbcb549b5
  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' hook_add postdoc 2 'pkg_djb_installdoc $pkg_djb_hierarchy'
fi 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
# #
custmain="pkg_djb_main" custmain="pkg_djb_main"

Loading…
Cancel
Save