Always link libpython.so with LIBS. Fixes #589422.

This commit is contained in:
Martin v. Löwis 2002-08-04 12:38:50 +00:00
parent 7d6e19d70c
commit d6359c55cc
2 changed files with 13 additions and 9 deletions

12
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.338 . # From configure.in Revision: 1.339 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53. # Generated by GNU Autoconf 2.53.
# #
@ -9001,15 +9001,17 @@ echo "${ECHO_T}$CFLAGSFORSHARED" >&6
# SHLIBS are libraries (except -lc and -lm) to link to the python shared # SHLIBS are libraries (except -lc and -lm) to link to the python shared
# library (with --enable-shared). # library (with --enable-shared).
# For platforms on which shared libraries are not allowed to have unresolved # For platforms on which shared libraries are not allowed to have unresolved
# symbols, this must be set to $(LIBS) (expanded by make). # symbols, this must be set to $(LIBS) (expanded by make). We do this even
# if it is not required, since it creates a dependency of the shared library
# to LIBS. This, in turn, means that applications linking the shared libpython
# don't need to link LIBS explicitly. The default should be only changed
# on systems where this approach causes problems.
echo "$as_me:$LINENO: checking SHLIBS" >&5 echo "$as_me:$LINENO: checking SHLIBS" >&5
echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
case "$ac_sys_system" in case "$ac_sys_system" in
atheos*)
SHLIBS='$(LIBS)';;
*) *)
SHLIBS='';; SHLIBS='$(LIBS)';;
esac esac
echo "$as_me:$LINENO: result: $SHLIBS" >&5 echo "$as_me:$LINENO: result: $SHLIBS" >&5
echo "${ECHO_T}$SHLIBS" >&6 echo "${ECHO_T}$SHLIBS" >&6

View File

@ -1043,14 +1043,16 @@ AC_MSG_RESULT($CFLAGSFORSHARED)
# SHLIBS are libraries (except -lc and -lm) to link to the python shared # SHLIBS are libraries (except -lc and -lm) to link to the python shared
# library (with --enable-shared). # library (with --enable-shared).
# For platforms on which shared libraries are not allowed to have unresolved # For platforms on which shared libraries are not allowed to have unresolved
# symbols, this must be set to $(LIBS) (expanded by make). # symbols, this must be set to $(LIBS) (expanded by make). We do this even
# if it is not required, since it creates a dependency of the shared library
# to LIBS. This, in turn, means that applications linking the shared libpython
# don't need to link LIBS explicitly. The default should be only changed
# on systems where this approach causes problems.
AC_SUBST(SHLIBS) AC_SUBST(SHLIBS)
AC_MSG_CHECKING(SHLIBS) AC_MSG_CHECKING(SHLIBS)
case "$ac_sys_system" in case "$ac_sys_system" in
atheos*)
SHLIBS='$(LIBS)';;
*) *)
SHLIBS='';; SHLIBS='$(LIBS)';;
esac esac
AC_MSG_RESULT($SHLIBS) AC_MSG_RESULT($SHLIBS)