/
patch-configure-remove-libtool-cruft.patch
77 lines (76 loc) · 2.1 KB
/
patch-configure-remove-libtool-cruft.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
diff --git a/configure.ac b/configure.ac
index 956334a865..d5f4aed476 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2970,72 +2970,6 @@ case $ac_sys_system/$ac_sys_release in
;;
esac
-
-AC_SUBST(LIBTOOL_CRUFT)
-case $ac_sys_system/$ac_sys_release in
- Darwin/@<:@01567@:>@\..*)
- LIBTOOL_CRUFT="-framework System -lcc_dynamic"
- if test "${enable_universalsdk}"; then
- :
- else
- LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
- fi
- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
- Darwin/*)
- gcc_version=`gcc -dumpversion`
- if test ${gcc_version} '<' 4.0
- then
- LIBTOOL_CRUFT="-lcc_dynamic"
- else
- LIBTOOL_CRUFT=""
- fi
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <unistd.h>
- int main(int argc, char*argv[])
- {
- if (sizeof(long) == 4) {
- return 0;
- } else {
- return 1;
- }
- }
- ]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
-
- if test "${ac_osx_32bit}" = "yes"; then
- case `/usr/bin/arch` in
- i386)
- MACOSX_DEFAULT_ARCH="i386"
- ;;
- ppc)
- MACOSX_DEFAULT_ARCH="ppc"
- ;;
- *)
- AC_MSG_ERROR([Unexpected output of 'arch' on macOS])
- ;;
- esac
- else
- case `/usr/bin/arch` in
- i386)
- MACOSX_DEFAULT_ARCH="x86_64"
- ;;
- ppc)
- MACOSX_DEFAULT_ARCH="ppc64"
- ;;
- arm64)
- MACOSX_DEFAULT_ARCH="arm64"
- ;;
- *)
- AC_MSG_ERROR([Unexpected output of 'arch' on macOS])
- ;;
- esac
-
- fi
-
- LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
-esac
AC_MSG_CHECKING(for --enable-framework)
if test "$enable_framework"
then