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
682c04c7
Commit
682c04c7
authored
Aug 22, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #21166: merge from 3.4
parents
d0aeda8f
fcbc246e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
Makefile.pre.in
Makefile.pre.in
+11
-1
Misc/NEWS
Misc/NEWS
+3
-0
configure
configure
+3
-0
configure.ac
configure.ac
+3
-0
No files found.
Makefile.pre.in
View file @
682c04c7
...
...
@@ -553,8 +553,18 @@ platform: $(BUILDPYTHON) pybuilddir.txt
# Create build directory and generate the sysconfig build-time data there.
# pybuilddir.txt contains the name of the build dir and is used for
# sys.path fixup -- see Modules/getpath.c.
# Since this step runs before shared modules are built, try to avoid bootstrap
# problems by creating a dummy pybuildstr.txt just to allow interpreter
# initialization to succeed. It will be overwritten by generate-posix-vars
# or removed in case of failure.
pybuilddir.txt
:
$(BUILDPYTHON)
$(RUNSHARED)
$(PYTHON_FOR_BUILD)
-S
-m
sysconfig
--generate-posix-vars
@
echo
"none"
>
./pybuilddir.txt
$(RUNSHARED)
$(PYTHON_FOR_BUILD)
-S
-m
sysconfig
--generate-posix-vars
;
\
if
test
$$
?
-ne
0
;
then
\
echo
"generate-posix-vars failed"
;
\
rm
-f
./pybuilddir.txt
;
\
exit
1
;
\
fi
# Build the shared modules
# Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
...
...
Misc/NEWS
View file @
682c04c7
...
...
@@ -825,6 +825,9 @@ Build
- Issue #21811: Anticipated fixes to support OS X versions > 10.9.
- Issue #21166: Prevent possible segfaults and other random failures of
python --generate-posix-vars in pybuilddir.txt build target.
C API
-----
...
...
configure
View file @
682c04c7
...
...
@@ -2954,6 +2954,9 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
rm
-f
pybuilddir.txt
if
test
"
$cross_compiling
"
=
yes
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for python interpreter for cross build"
>
&5
$as_echo_n
"checking for python interpreter for cross build... "
>
&6
;
}
...
...
configure.ac
View file @
682c04c7
...
...
@@ -53,6 +53,9 @@ AC_CANONICAL_HOST
AC_SUBST(build)
AC_SUBST(host)
# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
rm -f pybuilddir.txt
if test "$cross_compiling" = yes; then
AC_MSG_CHECKING([for python interpreter for cross build])
if test -z "$PYTHON_FOR_BUILD"; then
...
...
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