mirror of https://github.com/python/cpython
merge 11347.
This commit is contained in:
commit
4e9da47d8f
|
@ -75,6 +75,7 @@ PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
|
|||
# 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); \
|
||||
|
|
|
@ -578,6 +578,8 @@ Library
|
|||
Build
|
||||
-----
|
||||
|
||||
- Issue #11347: Use --as-needed when linking libpython3.so.
|
||||
|
||||
- Issue #11411: Fix 'make DESTDIR=' with a relative destination.
|
||||
|
||||
- Issue #11268: Prevent Mac OS X Installer failure if Documentation
|
||||
|
|
12
configure.in
12
configure.in
|
@ -518,6 +518,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
|
||||
|
||||
|
|
Loading…
Reference in New Issue