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
769db93d
Commit
769db93d
authored
Nov 22, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Make Dwarf4 the default debug format.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f176619
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
86 deletions
+22
-86
configure
configure
+20
-82
configure.ac
configure.ac
+2
-4
No files found.
configure
View file @
769db93d
...
@@ -12164,16 +12164,16 @@ fi ;;
...
@@ -12164,16 +12164,16 @@ fi ;;
if
test
"x
$ac_debug_format_seen
"
=
x
if
test
"x
$ac_debug_format_seen
"
=
x
then
then
case
$CROSSDEBUG
in
case
$CROSSDEBUG
in
*
dwarf
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -gdwarf-
2
"
>
&5
*
dwarf
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -gdwarf-
4
"
>
&5
printf
%s
"checking whether the cross-compiler supports -gdwarf-
2
... "
>
&6
;
}
printf
%s
"checking whether the cross-compiler supports -gdwarf-
4
... "
>
&6
;
}
if
test
${
ac_cv_crosscflags__gdwarf_
2
+y
}
if
test
${
ac_cv_crosscflags__gdwarf_
4
+y
}
then
:
then
:
printf
%s
"(cached) "
>
&6
printf
%s
"(cached) "
>
&6
else
$as_nop
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved_cc
=
$CC
ac_wine_try_cflags_saved_cc
=
$CC
ac_wine_try_cflags_saved_exeext
=
$ac_exeext
ac_wine_try_cflags_saved_exeext
=
$ac_exeext
CFLAGS
=
"
$CFLAGS
$EXTRACROSSCFLAGS
-nostartfiles -nodefaultlibs -gdwarf-
2
"
CFLAGS
=
"
$CFLAGS
$EXTRACROSSCFLAGS
-nostartfiles -nodefaultlibs -gdwarf-
4
"
CC
=
"
$CROSSCC
"
CC
=
"
$CROSSCC
"
ac_exeext
=
".exe"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
...
@@ -12182,9 +12182,9 @@ int __cdecl mainCRTStartup(void) { return 0; }
...
@@ -12182,9 +12182,9 @@ int __cdecl mainCRTStartup(void) { return 0; }
_ACEOF
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
if
ac_fn_c_try_link
"
$LINENO
"
then
:
then
:
ac_cv_crosscflags__gdwarf_
2
=
yes
ac_cv_crosscflags__gdwarf_
4
=
yes
else
$as_nop
else
$as_nop
ac_cv_crosscflags__gdwarf_
2
=
no
ac_cv_crosscflags__gdwarf_
4
=
no
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
...
@@ -12192,45 +12192,11 @@ CFLAGS=$ac_wine_try_cflags_saved
...
@@ -12192,45 +12192,11 @@ CFLAGS=$ac_wine_try_cflags_saved
CC
=
$ac_wine_try_cflags_saved_cc
CC
=
$ac_wine_try_cflags_saved_cc
ac_exeext
=
$ac_wine_try_cflags_saved_exeext
ac_exeext
=
$ac_wine_try_cflags_saved_exeext
fi
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_crosscflags__gdwarf_
2
"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_crosscflags__gdwarf_
4
"
>
&5
printf
"%s
\n
"
"
$ac_cv_crosscflags__gdwarf_
2
"
>
&6
;
}
printf
"%s
\n
"
"
$ac_cv_crosscflags__gdwarf_
4
"
>
&6
;
}
if
test
"x
$ac_cv_crosscflags__gdwarf_
2
"
=
xyes
if
test
"x
$ac_cv_crosscflags__gdwarf_
4
"
=
xyes
then
:
then
:
EXTRACROSSCFLAGS
=
"
$EXTRACROSSCFLAGS
-gdwarf-2"
EXTRACROSSCFLAGS
=
"
$EXTRACROSSCFLAGS
-gdwarf-4"
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -gstrict-dwarf"
>
&5
printf
%s
"checking whether the cross-compiler supports -gstrict-dwarf... "
>
&6
;
}
if
test
${
ac_cv_crosscflags__gstrict_dwarf
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved_cc
=
$CC
ac_wine_try_cflags_saved_exeext
=
$ac_exeext
CFLAGS
=
"
$CFLAGS
$EXTRACROSSCFLAGS
-nostartfiles -nodefaultlibs -gstrict-dwarf"
CC
=
"
$CROSSCC
"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int __cdecl mainCRTStartup(void) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
ac_cv_crosscflags__gstrict_dwarf
=
yes
else
$as_nop
ac_cv_crosscflags__gstrict_dwarf
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
CC
=
$ac_wine_try_cflags_saved_cc
ac_exeext
=
$ac_wine_try_cflags_saved_exeext
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_crosscflags__gstrict_dwarf
"
>
&5
printf
"%s
\n
"
"
$ac_cv_crosscflags__gstrict_dwarf
"
>
&6
;
}
if
test
"x
$ac_cv_crosscflags__gstrict_dwarf
"
=
xyes
then
:
EXTRACROSSCFLAGS
=
"
$EXTRACROSSCFLAGS
-gstrict-dwarf"
fi
;;
fi
;;
pdb
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -gcodeview"
>
&5
pdb
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -gcodeview"
>
&5
printf
%s
"checking whether the cross-compiler supports -gcodeview... "
>
&6
;
}
printf
%s
"checking whether the cross-compiler supports -gcodeview... "
>
&6
;
}
...
@@ -18588,61 +18554,33 @@ printf "%s\n" "$wine_cv_64bit_compare_swap" >&6; }
...
@@ -18588,61 +18554,33 @@ printf "%s\n" "$wine_cv_64bit_compare_swap" >&6; }
done
done
if
test
"x
$ac_debug_format_seen
"
=
xdefault
if
test
"x
$ac_debug_format_seen
"
=
xdefault
then
then
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -gdwarf-2"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -gdwarf-4"
>
&5
printf
%s
"checking whether the compiler supports -gdwarf-2... "
>
&6
;
}
printf
%s
"checking whether the compiler supports -gdwarf-4... "
>
&6
;
}
if
test
${
ac_cv_cflags__gdwarf_2
+y
}
if
test
${
ac_cv_cflags__gdwarf_4
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-gdwarf-2"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
ac_cv_cflags__gdwarf_2
=
yes
else
$as_nop
ac_cv_cflags__gdwarf_2
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__gdwarf_2
"
>
&5
printf
"%s
\n
"
"
$ac_cv_cflags__gdwarf_2
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__gdwarf_2
"
=
xyes
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-gdwarf-2"
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -gstrict-dwarf"
>
&5
printf
%s
"checking whether the compiler supports -gstrict-dwarf... "
>
&6
;
}
if
test
${
ac_cv_cflags__gstrict_dwarf
+y
}
then
:
then
:
printf
%s
"(cached) "
>
&6
printf
%s
"(cached) "
>
&6
else
$as_nop
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-g
strict-dwarf
"
CFLAGS
=
"
$CFLAGS
-g
dwarf-4
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
int main(int argc, char **argv) { return 0; }
_ACEOF
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
if
ac_fn_c_try_link
"
$LINENO
"
then
:
then
:
ac_cv_cflags__g
strict_dwarf
=
yes
ac_cv_cflags__g
dwarf_4
=
yes
else
$as_nop
else
$as_nop
ac_cv_cflags__g
strict_dwarf
=
no
ac_cv_cflags__g
dwarf_4
=
no
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
CFLAGS
=
$ac_wine_try_cflags_saved
fi
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__g
strict_dwarf
"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__g
dwarf_4
"
>
&5
printf
"%s
\n
"
"
$ac_cv_cflags__g
strict_dwarf
"
>
&6
;
}
printf
"%s
\n
"
"
$ac_cv_cflags__g
dwarf_4
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__g
strict_dwarf
"
=
xyes
if
test
"x
$ac_cv_cflags__g
dwarf_4
"
=
xyes
then
:
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-g
strict-dwarf
"
EXTRACFLAGS
=
"
$EXTRACFLAGS
-g
dwarf-4
"
fi
fi
fi
fi
...
...
configure.ac
View file @
769db93d
...
@@ -1029,8 +1029,7 @@ then
...
@@ -1029,8 +1029,7 @@ then
if test "x$ac_debug_format_seen" = x
if test "x$ac_debug_format_seen" = x
then
then
case $CROSSDEBUG in
case $CROSSDEBUG in
*dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-2])
*dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-4]) ;;
WINE_TRY_CROSSCFLAGS([-gstrict-dwarf]) ;;
pdb) WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
pdb) WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
esac
esac
fi
fi
...
@@ -1843,8 +1842,7 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
...
@@ -1843,8 +1842,7 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
done
done
if test "x$ac_debug_format_seen" = xdefault
if test "x$ac_debug_format_seen" = xdefault
then
then
WINE_TRY_CFLAGS([-gdwarf-2])
WINE_TRY_CFLAGS([-gdwarf-4])
WINE_TRY_CFLAGS([-gstrict-dwarf])
fi
fi
dnl Disable gcc builtins except for Mingw
dnl Disable gcc builtins except for Mingw
...
...
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