Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
288a5be5
Commit
288a5be5
authored
Apr 13, 2006
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If compiling with g++ don't use -Wstrict-prototpes.
parent
57fdcbc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
configure
configure
+7
-4
configure.in
configure.in
+6
-3
No files found.
configure
View file @
288a5be5
#! /bin/sh
#! /bin/sh
# From configure.in Revision: 452
64
.
# From configure.in Revision: 452
78
.
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.5.
# Generated by GNU Autoconf 2.59 for python 2.5.
#
#
...
@@ -3792,18 +3792,21 @@ if test -z "$OPT"
...
@@ -3792,18 +3792,21 @@ if test -z "$OPT"
then
then
case
$GCC
in
case
$GCC
in
yes
)
yes
)
if
test
"
$CC
"
!=
'g++'
;
then
STRICT_PROTO
=
"-Wstrict-prototypes"
fi
case
$ac_cv_prog_cc_g
in
case
$ac_cv_prog_cc_g
in
yes
)
yes
)
if
test
"
$Py_DEBUG
"
=
'true'
;
then
if
test
"
$Py_DEBUG
"
=
'true'
;
then
# Optimization messes up debuggers, so turn it off for
# Optimization messes up debuggers, so turn it off for
# debug builds.
# debug builds.
OPT
=
"-g -Wall
-Wstrict-prototypes
"
OPT
=
"-g -Wall
$STRICT_PROTO
"
else
else
OPT
=
"-g -O3 -Wall
-Wstrict-prototypes
"
OPT
=
"-g -O3 -Wall
$STRICT_PROTO
"
fi
fi
;;
;;
*
)
*
)
OPT
=
"-O3 -Wall
-Wstrict-prototypes
"
OPT
=
"-O3 -Wall
$STRICT_PROTO
"
;;
;;
esac
esac
case
$ac_sys_system
in
case
$ac_sys_system
in
...
...
configure.in
View file @
288a5be5
...
@@ -685,18 +685,21 @@ if test -z "$OPT"
...
@@ -685,18 +685,21 @@ if test -z "$OPT"
then
then
case $GCC in
case $GCC in
yes)
yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
case $ac_cv_prog_cc_g in
case $ac_cv_prog_cc_g in
yes)
yes)
if test "$Py_DEBUG" = 'true' ; then
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# Optimization messes up debuggers, so turn it off for
# debug builds.
# debug builds.
OPT="-g -Wall
-Wstrict-prototypes
"
OPT="-g -Wall
$STRICT_PROTO
"
else
else
OPT="-g -O3 -Wall
-Wstrict-prototypes
"
OPT="-g -O3 -Wall
$STRICT_PROTO
"
fi
fi
;;
;;
*)
*)
OPT="-O3 -Wall
-Wstrict-prototypes
"
OPT="-O3 -Wall
$STRICT_PROTO
"
;;
;;
esac
esac
case $ac_sys_system in
case $ac_sys_system in
...
...
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