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

Skip to content

Commit d6359c5

Browse files
committed
Always link libpython.so with LIBS. Fixes #589422.
1 parent 7d6e19d commit d6359c5

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

configure

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 1.338 .
2+
# From configure.in Revision: 1.339 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.53.
55
#
@@ -9001,15 +9001,17 @@ echo "${ECHO_T}$CFLAGSFORSHARED" >&6
90019001
# SHLIBS are libraries (except -lc and -lm) to link to the python shared
90029002
# library (with --enable-shared).
90039003
# For platforms on which shared libraries are not allowed to have unresolved
9004-
# symbols, this must be set to $(LIBS) (expanded by make).
9004+
# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9005+
# if it is not required, since it creates a dependency of the shared library
9006+
# to LIBS. This, in turn, means that applications linking the shared libpython
9007+
# don't need to link LIBS explicitly. The default should be only changed
9008+
# on systems where this approach causes problems.
90059009
90069010
echo "$as_me:$LINENO: checking SHLIBS" >&5
90079011
echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
90089012
case "$ac_sys_system" in
9009-
atheos*)
9010-
SHLIBS='$(LIBS)';;
90119013
*)
9012-
SHLIBS='';;
9014+
SHLIBS='$(LIBS)';;
90139015
esac
90149016
echo "$as_me:$LINENO: result: $SHLIBS" >&5
90159017
echo "${ECHO_T}$SHLIBS" >&6

configure.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,14 +1043,16 @@ AC_MSG_RESULT($CFLAGSFORSHARED)
10431043
# SHLIBS are libraries (except -lc and -lm) to link to the python shared
10441044
# library (with --enable-shared).
10451045
# For platforms on which shared libraries are not allowed to have unresolved
1046-
# symbols, this must be set to $(LIBS) (expanded by make).
1046+
# symbols, this must be set to $(LIBS) (expanded by make). We do this even
1047+
# if it is not required, since it creates a dependency of the shared library
1048+
# to LIBS. This, in turn, means that applications linking the shared libpython
1049+
# don't need to link LIBS explicitly. The default should be only changed
1050+
# on systems where this approach causes problems.
10471051
AC_SUBST(SHLIBS)
10481052
AC_MSG_CHECKING(SHLIBS)
10491053
case "$ac_sys_system" in
1050-
atheos*)
1051-
SHLIBS='$(LIBS)';;
10521054
*)
1053-
SHLIBS='';;
1055+
SHLIBS='$(LIBS)';;
10541056
esac
10551057
AC_MSG_RESULT($SHLIBS)
10561058

0 commit comments

Comments
 (0)