Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
dbec780a
Kaydet (Commit)
dbec780a
authored
Eki 10, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9437: Fix building C extensions with non-default LDFLAGS.
üst
19f8edc3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
sysconfig.py
Lib/distutils/sysconfig.py
+5
-0
sysconfig.py
Lib/sysconfig.py
+5
-0
Makefile.pre.in
Makefile.pre.in
+8
-8
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
dbec780a
...
...
@@ -359,6 +359,11 @@ def parse_makefile(fn, g=None):
fp
.
close
()
# strip spurious spaces
for
k
,
v
in
done
.
items
():
if
isinstance
(
v
,
str
):
done
[
k
]
=
v
.
strip
()
# save the results in the global dictionary
g
.
update
(
done
)
return
g
...
...
Lib/sysconfig.py
Dosyayı görüntüle @
dbec780a
...
...
@@ -296,6 +296,11 @@ def _parse_makefile(filename, vars=None):
# bogus variable reference; just drop it since we can't deal
variables
.
remove
(
name
)
# strip spurious spaces
for
k
,
v
in
done
.
items
():
if
isinstance
(
v
,
str
):
done
[
k
]
=
v
.
strip
()
# save the results in the global dictionary
vars
.
update
(
done
)
return
vars
...
...
Makefile.pre.in
Dosyayı görüntüle @
dbec780a
...
...
@@ -112,8 +112,8 @@ LIBP= $(LIBDIR)/python$(VERSION)
# Symbols used for using shared libraries
SO
=
@SO@
LDSHARED
=
@LDSHARED@
BLDSHARED
=
@BLDSHARED@
LDSHARED
=
@LDSHARED@
$(PY_LDFLAGS)
BLDSHARED
=
@BLDSHARED@
$(PY_LDFLAGS)
LDCXXSHARED
=
@LDCXXSHARED@
DESTSHARED
=
$(BINLIBDEST)
/lib-dynload
...
...
@@ -429,8 +429,8 @@ platform: $(BUILDPYTHON)
# Build the shared modules
sharedmods
:
$(BUILDPYTHON)
@
case
$$
MAKEFLAGS
in
\
*
s
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
LDFLAGS
=
'
$(PY_LDFLAGS)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py
-q
build
;;
\
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
LDFLAGS
=
'
$(PY_LDFLAGS)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py build
;;
\
*
s
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py
-q
build
;;
\
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py build
;;
\
esac
# Build static library
...
...
@@ -447,10 +447,10 @@ $(LIBRARY): $(LIBRARY_OBJS)
libpython$(VERSION).so
:
$(LIBRARY_OBJS)
if
test
$(INSTSONAME)
!=
$(LDLIBRARY)
;
then
\
$(BLDSHARED)
$(PY_LDFLAGS)
-Wl
,-h
$(INSTSONAME)
-o
$(INSTSONAME)
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
$(BLDSHARED)
-Wl
,-h
$(INSTSONAME)
-o
$(INSTSONAME)
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
$(LN)
-f
$(INSTSONAME)
$@
;
\
else
\
$(BLDSHARED)
$(PY_LDFLAGS)
-o
$@
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
$(BLDSHARED)
-o
$@
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
fi
libpython$(VERSION).dylib
:
$(LIBRARY_OBJS)
...
...
@@ -458,7 +458,7 @@ libpython$(VERSION).dylib: $(LIBRARY_OBJS)
libpython$(VERSION).sl
:
$(LIBRARY_OBJS)
$(LDSHARED)
$(PY_LDFLAGS)
-o
$@
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
$(LDSHARED)
-o
$@
$(LIBRARY_OBJS)
$(MODLIBS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
# Copy up the gdb python hooks into a position where they can be automatically
# loaded by gdb during Lib/test/test_gdb.py
...
...
@@ -504,7 +504,7 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
# for a shared core library; otherwise, this rule is a noop.
$(DLLLIBRARY) libpython$(VERSION).dll.a
:
$(LIBRARY_OBJS)
if
test
-n
"
$(DLLLIBRARY)
"
;
then
\
$(LDSHARED)
$(PY_LDFLAGS)
-Wl
,--out-implib
=
$@
-o
$(DLLLIBRARY)
$^
\
$(LDSHARED)
-Wl
,--out-implib
=
$@
-o
$(DLLLIBRARY)
$^
\
$(LIBS)
$(MODLIBS)
$(SYSLIBS)
$(LDLAST)
;
\
else
true
;
\
fi
...
...
Misc/NEWS
Dosyayı görüntüle @
dbec780a
...
...
@@ -95,6 +95,8 @@ Core and Builtins
Library
-------
- Issue #9437: Fix building C extensions with non-default LDFLAGS.
- Issue #4661: email can now parse bytes input and generate either converted
7bit output or bytes output. Email version bumped to 5.1.0.
...
...
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