29 lines
938 B
Diff
29 lines
938 B
Diff
|
Link:
|
||
|
Subject: skip x86_cpuid_info.c target while cross-compiling
|
||
|
Bug: 94415
|
||
|
Tags: cross
|
||
|
|
||
|
diff -rupN a/src/configure.in b/src/configure.in
|
||
|
--- a/src/configure.in 2020-11-27 06:01:02.167900172 +0300
|
||
|
+++ b/src/configure.in 2020-11-27 22:03:20.989646148 +0300
|
||
|
@@ -298,7 +298,8 @@ AC_ARG_WITH(CPU,
|
||
|
core|core2|i7|atom|p4|p3|opteron|athlon)
|
||
|
MISCSRCS="$MISCSRCS x86_cpuid_info.c"
|
||
|
esac],
|
||
|
- [case "$OS" in
|
||
|
+ [if test "$cross_compiling" = "no" ; then
|
||
|
+ case "$OS" in
|
||
|
aix)
|
||
|
CPU="`/usr/sbin/lsattr -E -l proc0 | grep type | cut -d '_' -f 2 | cut -d ' ' -f 1 | tr '[A-Z]' '[a-z]'`"
|
||
|
if test "$CPU" = ""; then
|
||
|
@@ -378,7 +379,8 @@ AC_ARG_WITH(CPU,
|
||
|
CPU=bgp ;;
|
||
|
bgq)
|
||
|
CPU=bgq ;;
|
||
|
- esac ])
|
||
|
+ esac
|
||
|
+ fi])
|
||
|
AC_MSG_RESULT($CPU)
|
||
|
AC_DEFINE_UNQUOTED(CPU,$CPU,[cpu type])
|
||
|
|