Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1947be

Browse files
committed
Merged revisions 79221 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ................ r79221 | antoine.pitrou | 2010-03-21 20:25:26 +0100 (dim., 21 mars 2010) | 11 lines Merged revisions 79218 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r79218 | antoine.pitrou | 2010-03-21 20:19:41 +0100 (dim., 21 mars 2010) | 5 lines Issue #1628484: The Makefile doesn't ignore the CFLAGS environment variable anymore. It also forwards the LDFLAGS settings to the linker when building a shared library. ........ ................
1 parent 5391211 commit e1947be

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

Makefile.pre.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ MAKESETUP= $(srcdir)/Modules/makesetup
5959
# Compiler options
6060
OPT= @OPT@
6161
BASECFLAGS= @BASECFLAGS@
62-
CFLAGS= $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)
62+
CFLAGS= $(BASECFLAGS) @CFLAGS@ $(OPT) $(EXTRA_CFLAGS)
6363
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
6464
# be able to build extension modules using the directories specified in the
6565
# environment variables
@@ -89,8 +89,8 @@ exec_prefix= @exec_prefix@
8989
datarootdir= @datarootdir@
9090

9191
# Expanded directories
92-
BINDIR= $(exec_prefix)/bin
93-
LIBDIR= $(exec_prefix)/lib
92+
BINDIR= @bindir@
93+
LIBDIR= @libdir@
9494
MANDIR= @mandir@
9595
INCLUDEDIR= @includedir@
9696
CONFINCLUDEDIR= $(exec_prefix)/include
@@ -417,8 +417,8 @@ platform: $(BUILDPYTHON)
417417
# Build the shared modules
418418
sharedmods: $(BUILDPYTHON)
419419
@case $$MAKEFLAGS in \
420-
*s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
421-
*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
420+
*s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' LDFLAGS='$(LDFLAGS)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
421+
*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' LDFLAGS='$(LDFLAGS)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
422422
esac
423423

424424
# Build static library

Misc/NEWS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ Python News
44

55
(editors: check NEWS.help for information about editing NEWS using ReST.)
66

7+
What's New in Python 3.1.3?
8+
===========================
9+
10+
*Release date: 20XX-XX-XX*
11+
12+
Build
13+
-----
14+
15+
- Issue #1628484: The Makefile doesn't ignore the CFLAGS environment
16+
variable anymore. It also forwards the LDFLAGS settings to the linker
17+
when building a shared library.
18+
19+
720
What's New in Python 3.1.2?
821
===========================
922

0 commit comments

Comments
 (0)