diff options
Diffstat (limited to 'devel/tcc/BUILD')
-rwxr-xr-x | devel/tcc/BUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/tcc/BUILD b/devel/tcc/BUILD index 5e4ea7d449..89174bc14e 100755 --- a/devel/tcc/BUILD +++ b/devel/tcc/BUILD @@ -1,2 +1,11 @@ -sed -i '/cpu="unknown"/ s,,if [[ '${SMGL_COMPAT_ARCHS[1]}' == ia32 ]]; then cpu="x86"; else cpu="unknown"; fi,' configure && +if is_depends_enabled $SPELL gcc; then + OPTS="--sysroot=$INSTALL_ROOT/usr \ + --crtprefix=$INSTALL_ROOT/usr/lib \ + --sysincludepaths=$INSTALL_ROOT/usr/include:$INSTALL_ROOT/usr/lib/tcc/include \ + --libpaths=$INSTALL_ROOT/lib:$INSTALL_ROOT/usr/lib\ + $OPTS" +fi && + +OPTS="$TCC_OPTS $OPTS" && + default_build |