]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
When _locale became a built-in module it was discovered that ``-lintl`` was not
authorBrett Cannon <bcannon@gmail.com>
Sun, 7 Jun 2009 20:09:53 +0000 (20:09 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 7 Jun 2009 20:09:53 +0000 (20:09 +0000)
added as a build flag as needed. This then led to the discovery that OS X
framework builds did not have the LIBS var to pick up this flag.

Fixes issue #6154. Thanks to Benjamin Peterson, Roumen Petrov, Erick Tryzelaar,
Mark Dickinson, Evan Behar, and Ronald Oussoren for helping.

Makefile.pre.in
Misc/NEWS
configure
configure.in

index 378707a86cbdfcdb048df380344a560daa170443..20483f713f77852e0352adc7f2572b3f3497f97e 100644 (file)
@@ -463,10 +463,10 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
                        -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
                        -compatibility_version $(VERSION) \
                        -current_version $(VERSION) \
-                       -framework CoreFoundation; \
+                       -framework CoreFoundation $(LIBS); \
         else \
                /usr/bin/libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
-                       @LIBTOOL_CRUFT@ -framework CoreFoundation;\
+                       @LIBTOOL_CRUFT@ -framework CoreFoundation $(LIBS);\
        fi
        $(INSTALL) -d -m $(DIRMODE)  \
                $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
index 7673f996aaee154e03cc3e4296e115a52920861c..3f2179f90660cd10ef81d7038c73b32fd4b3d3b9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -58,6 +58,13 @@ C-API
   --with-pydebug, and vice-versa.
 
 
+Build
+-----
+
+- Issue #6154: Make sure the intl library is added to LIBS if needed. Also
+  added LIBS to OS X framework builds.
+
+
 What's New in Python 3.1 release candidate 1?
 =============================================
 
index f834aaf94127f84b7021b3f996645ec9743dcf59..4b429c3840cb5633189f01af3e3fa2f958b83d81 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 73021 .
+# From configure.in Revision: 73142 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 3.1.
 #
@@ -13892,6 +13892,7 @@ cat >>confdefs.h <<\_ACEOF
 #define WITH_LIBINTL 1
 _ACEOF
 
+        LIBS="-lintl $LIBS"
 fi
 
 
index 4e77f111727d88e482ac6968caf9aa0b03cca972..73472bdc53e363e88c3ec6a50805c43294744d29 100644 (file)
@@ -1819,8 +1819,9 @@ fi
 
 # check if we need libintl for locale functions
 AC_CHECK_LIB(intl, textdomain,
-       AC_DEFINE(WITH_LIBINTL, 1,
-       [Define to 1 if libintl is needed for locale functions.]))
+       [AC_DEFINE(WITH_LIBINTL, 1,
+       [Define to 1 if libintl is needed for locale functions.])
+        LIBS="-lintl $LIBS"])
 
 # checks for system dependent C++ extensions support
 case "$ac_sys_system" in