Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on x86_64 #2

Open
wmanley opened this issue Dec 11, 2012 · 0 comments
Open

Fix compilation on x86_64 #2

wmanley opened this issue Dec 11, 2012 · 0 comments

Comments

@wmanley
Copy link
Owner

wmanley commented Dec 11, 2012

Compilation fails on x86_64 because there is a case statement switching on specific known architectures in configure.in:

machine=`($CC -dumpmachine)`
case $machine in
 i?86-*-*)  AC_SUBST(OBJECT_X86, 1)
        AC_SUBST(DOBJ_TARGET, "-DOBJECT_X86=1")
        AC_SUBST(ARCH, x86)
        if test -e "/lib/modules/`uname -r`/source"; then
           AC_SUBST(KERNELSOURCE, "/lib/modules/`uname -r`/source")
        fi;;
 mipsel-*-*)    AC_SUBST(OBJECT_4K, 1)
        AC_SUBST(DOBJ_TARGET, "-DOBJECT_4K=1")
        AC_SUBST(ARCH, mipsel-linux)
        AC_SUBST(CROSS_COMPILE, `echo $CC | sed 's/gcc$//'`);;
 mips-*)    AC_SUBST(OBJECT_4K, 1)
        AC_SUBST(DOBJ_TARGET, "-DOBJECT_4K=1")
        AC_SUBST(ARCH, mips-linux)
        AC_SUBST(CROSS_COMPILE, `echo $CC | sed 's/gcc$//'`);;
 sh4-*)     AC_SUBST(OBJECT_SH4, 1)
        AC_SUBST(DOBJ_TARGET, "-DOBJECT_SH4=1")
        AC_SUBST(ARCH, sh4-linux)
        AC_SUBST(CROSS_COMPILE, `echo $CC | sed 's/gcc$//'`);;
 *)         AC_MSG_ERROR("Unsupported target");;
esac

VQE-C should do something sensible on architectures which aren't listed here rather than just erroring out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant