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

Skip to content

Commit 051858e

Browse files
committed
Merged revisions 79902 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r79902 | ronald.oussoren | 2010-04-08 03:13:31 -0500 (Thu, 08 Apr 2010) | 9 lines This check-in fixes two problems: 1) A non-critical off-by-one error in pythonw 2) A problem in the configure script that caused builds with '--enable-framework --enable-universalsdk=/' to fail on OSX 10.6. ........
1 parent a082089 commit 051858e

2 files changed

Lines changed: 3 additions & 32 deletions

File tree

Mac/Tools/pythonw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static char* get_python_path(void)
7878
end --;
7979
}
8080
end++;
81-
if (end[1] == '.') {
81+
if (*end == '.') {
8282
end++;
8383
}
8484
strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK);
@@ -161,7 +161,7 @@ main(int argc, char **argv) {
161161
setup_spawnattr(&spawnattr);
162162
posix_spawn(NULL, exec_path, NULL,
163163
&spawnattr, argv, environ);
164-
err(1, "posix_spawn: %s", argv[0]);
164+
err(1, "posix_spawn: %s", exec_path);
165165
}
166166
#endif
167167
execve(exec_path, argv, environ);

configure.in

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -915,36 +915,7 @@ yes)
915915
if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
916916
UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
917917
ARCH_RUN_32BIT=""
918-
LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
919-
920-
# You have to use different flags on various versions of
921-
# OSX to extract PPC code from an universal binary, basically
922-
# '-arch ppc' on OSX 10.4 and '-arch ppc7400' on anything
923-
# newer.
924-
# Because '-arch pp7400' works on OSX 10.5 or higher this
925-
# test is only present in the '32-bit' branch, all other
926-
# branches require OSX 10.5 to compile.
927-
928-
AC_MSG_CHECKING(lipo flag for extracting ppc code)
929-
FN="test.$$"
930-
cat >${FN}.c <<-EOF
931-
int main() { return 0; }
932-
EOF
933-
${CC} ${CFLAGS} -arch ppc -arch i386 -o ${FN} ${FN}.c -isysroot ${UNIVERSALSDK}
934-
if test $? != 0 ; then
935-
rm ${FN} ${FN}.c
936-
AC_MSG_RESULT([failed, assumee -extract ppc7400])
937-
else
938-
lipo "${FN}" -extract ppc7400 -output "${FN}.out" 2>/dev/null
939-
if test $? != 0 ; then
940-
LIPO_32BIT_FLAGS="-extract ppc -extract i386"
941-
AC_MSG_RESULT("'-extract ppc'")
942-
else
943-
AC_MSG_RESULT("'-extract ppc7400'")
944-
fi
945-
rm -f ${FN} ${FN}.c ${FN}.out
946-
fi
947-
918+
LIPO_32BIT_FLAGS=""
948919
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
949920
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
950921
LIPO_32BIT_FLAGS=""

0 commit comments

Comments
 (0)