Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2b5dc2eb
Commit
2b5dc2eb
authored
Apr 14, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Cache result of the cross-compiler check.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
09e1c0f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
29 deletions
+37
-29
configure
configure
+22
-15
configure.ac
configure.ac
+15
-14
No files found.
configure
View file @
2b5dc2eb
...
@@ -9679,7 +9679,10 @@ test -n "$CROSSCC" || CROSSCC="false"
...
@@ -9679,7 +9679,10 @@ test -n "$CROSSCC" || CROSSCC="false"
CFLAGS
=
$CROSSCFLAGS
CFLAGS
=
$CROSSCFLAGS
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CROSSCC
works"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CROSSCC
works"
>
&5
$as_echo_n
"checking whether
$CROSSCC
works... "
>
&6
;
}
$as_echo_n
"checking whether
$CROSSCC
works... "
>
&6
;
}
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
if
${
wine_cv_crosscc
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* end confdefs.h. */
int
int
...
@@ -9691,23 +9694,27 @@ main ()
...
@@ -9691,23 +9694,27 @@ main ()
}
}
_ACEOF
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
wine_cv_crosscc
=
yes
$as_echo
"yes"
>
&6
;
}
set
x
$CROSSCC
shift
while
test
$#
-ge
1
do
case
"
$1
"
in
*
-gcc
)
CROSSTARGET
=
`
expr
"
$1
"
:
'\(.*\)-gcc'
`
;;
*
-clang
)
CROSSTARGET
=
`
expr
"
$1
"
:
'\(.*\)-clang'
`
;;
esac
shift
done
else
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
wine_cv_crosscc
=
no
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_crosscc
"
>
&5
$as_echo
"
$wine_cv_crosscc
"
>
&6
;
}
if
test
$wine_cv_crosscc
=
yes
then
set
x
$CROSSCC
shift
while
test
$#
-ge
1
do
case
"
$1
"
in
*
-gcc
)
CROSSTARGET
=
`
expr
"
$1
"
:
'\(.*\)-gcc'
`
;;
*
-clang
)
CROSSTARGET
=
`
expr
"
$1
"
:
'\(.*\)-clang'
`
;;
esac
shift
done
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -fno-strict-aliasing"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -fno-strict-aliasing"
>
&5
$as_echo_n
"checking whether the cross-compiler supports -fno-strict-aliasing... "
>
&6
;
}
$as_echo_n
"checking whether the cross-compiler supports -fno-strict-aliasing... "
>
&6
;
}
if
${
ac_cv_crosscflags__fno_strict_aliasing
+
:
}
false
;
then
:
if
${
ac_cv_crosscflags__fno_strict_aliasing
+
:
}
false
;
then
:
...
...
configure.ac
View file @
2b5dc2eb
...
@@ -1007,20 +1007,21 @@ then
...
@@ -1007,20 +1007,21 @@ then
CC="$CROSSCC"
CC="$CROSSCC"
CFLAGS=$CROSSCFLAGS
CFLAGS=$CROSSCFLAGS
AC_MSG_CHECKING([whether $CROSSCC works])
AC_CACHE_CHECK([whether $CROSSCC works], wine_cv_crosscc,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[wine_cv_crosscc=yes],[wine_cv_crosscc=no])])
[AC_MSG_RESULT([yes])
if test $wine_cv_crosscc = yes
set x $CROSSCC
then
shift
set x $CROSSCC
while test $# -ge 1
shift
do
while test $# -ge 1
case "$1" in
do
*-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
case "$1" in
*-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;;
*-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
esac
*-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;;
shift
esac
done],
shift
[AC_MSG_RESULT([no])])
done
fi
WINE_TRY_CROSSCFLAGS([-fno-strict-aliasing])
WINE_TRY_CROSSCFLAGS([-fno-strict-aliasing])
dnl clang needs to be told to fail on unknown options
dnl clang needs to be told to fail on unknown options
WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment