-
Notifications
You must be signed in to change notification settings - Fork 41
/
104fx_fix_links.sh
executable file
·83 lines (74 loc) · 12.1 KB
/
104fx_fix_links.sh
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
78
79
80
81
82
83
#!/bin/csh -f
# from AuroraFox, modified for TenFourFox
set verbose
set ppath=$1
cd $ppath/Contents/MacOS || exit
ditto /opt/local/lib/libgcc/libstdc++.6.dylib ./ || ditto /opt/local/lib/gcc46/libstdc++.6.dylib ./ || exit
ditto /opt/local/lib/libgcc/libgcc_s.1.dylib ./ || ditto /opt/local/lib/gcc46/libgcc_s.1.dylib ./ || exit
install_name_tool -id @executable_path/libgcc_s.1.dylib libgcc_s.1.dylib
install_name_tool -id @executable_path/libstdc++.6.dylib libstdc++.6.dylib
mv ../Resources/js . || echo '(never mind)'
# first in case it was linked against /opt/local/lib/libgcc
install_name_tool -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libstdc++.6.dylib
# fix Firefox and xpcshell
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib XUL
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib firefox
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib firefox-bin
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libfreebl3.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozalloc.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozglue.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnss3.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssckbi.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssdbm3.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplugin_child_interpose.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsoftokn3.dylib
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib updater.app/Contents/MacOS/updater
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/../MacOS/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/../MacOS/libgcc_s.1.dylib ../Resources/webapprt-stub
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/../../../MacOS/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/../../../MacOS/libgcc_s.1.dylib ../Resources/browser/components/libbrowsercomps.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libssl3.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libxpcom.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsmime3.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssutil3.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplc4.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplds4.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib components/libalerts.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozjs.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozsqlite3.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnspr4.dylib
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib plugin-container.app/Contents/MacOS/plugin-container
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib crashreporter.app/Contents/MacOS/crashreporter
#install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsoundtouch.dylib
# fix JS
install_name_tool -change /opt/local/lib/libgcc/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/libgcc/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib js
# now, in case it was linked against /opt/local/lib/gcc46
install_name_tool -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libstdc++.6.dylib
# fix Firefox and xpcshell
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib XUL
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib firefox
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib firefox-bin
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libfreebl3.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozalloc.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozglue.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnss3.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssckbi.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssdbm3.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplugin_child_interpose.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsoftokn3.dylib
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib updater.app/Contents/MacOS/updater
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/../MacOS/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/../MacOS/libgcc_s.1.dylib ../Resources/webapprt-stub
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/../../../MacOS/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/../../../MacOS/libgcc_s.1.dylib ../Resources/browser/components/libbrowsercomps.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libssl3.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libxpcom.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsmime3.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnssutil3.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplc4.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libplds4.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib components/libalerts.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozjs.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libmozsqlite3.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libnspr4.dylib
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib plugin-container.app/Contents/MacOS/plugin-container
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib crashreporter.app/Contents/MacOS/crashreporter
#install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib libsoundtouch.dylib
# fix JS
install_name_tool -change /opt/local/lib/gcc46/libstdc++.6.dylib @executable_path/libstdc++.6.dylib -change /opt/local/lib/gcc46/libgcc_s.1.dylib @executable_path/libgcc_s.1.dylib js