* [gentoo-commits] gentoo-x86 commit in dev-lang/python/files: python-3.2-soname_typo.patch
@ 2011-08-23 19:03 Jesus Rivero (neurogeek)
0 siblings, 0 replies; only message in thread
From: Jesus Rivero (neurogeek) @ 2011-08-23 19:03 UTC (permalink / raw
To: gentoo-commits
neurogeek 11/08/23 19:03:37
Added: python-3.2-soname_typo.patch
Log:
Applied patch from upstream, wrt bug #376303. Fixed License
(Portage version: 2.2.0_alpha46/cvs/Linux i686)
Revision Changes Path
1.1 dev-lang/python/files/python-3.2-soname_typo.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/files/python-3.2-soname_typo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/files/python-3.2-soname_typo.patch?rev=1.1&content-type=text/plain
Index: python-3.2-soname_typo.patch
===================================================================
# HG changeset patch
# User Martin v. Löwis <martin@v.loewis.de>
# Date 1304919465 -7200
# Node ID 749686064642118c5ccc8ad28105472321931353
# Parent 4f3f67a595fb05f04d89ed906df911b743e47463
Use --as-needed when linking libpython3.so. Closes #11347.
Patch by Arfrever Frehtes Taifersar Arahesis.
diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -76,6 +76,7 @@ PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIG
# environment variables
PY_CPPFLAGS= -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
+NO_AS_NEEDED= @NO_AS_NEEDED@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
CCSHARED= @CCSHARED@
@@ -459,7 +460,7 @@ libpython$(LDVERSION).so: $(LIBRARY_OBJS
fi
libpython3.so: libpython$(LDVERSION).so
- $(BLDSHARED) -o $@ -Wl,-hl$@ $^
+ $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
$(CC) -dynamiclib -Wl,-single_module $(PY_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -525,6 +525,18 @@ then
fi
+AC_MSG_CHECKING([for -Wl,--no-as-needed])
+save_LDFLAGS="$LDFLAGS"
+LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
+ [NO_AS_NEEDED="-Wl,--no-as-needed"
+ AC_MSG_RESULT([yes])],
+ [NO_AS_NEEDED=""
+ AC_MSG_RESULT([no])])
+LDFLAGS="$save_LDFLAGS"
+AC_SUBST(NO_AS_NEEDED)
+
+
# checks for UNIX variants that set C preprocessor variables
AC_USE_SYSTEM_EXTENSIONS
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-23 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23 19:03 [gentoo-commits] gentoo-x86 commit in dev-lang/python/files: python-3.2-soname_typo.patch Jesus Rivero (neurogeek)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox