86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
-
+
-
+
|
rm -f tclConfig.sh
exit 1
) || continue
## Kludge to make Tcl install when cross-compiling.
sed 's@^${TCL_EXE}@blah@' Makefile > Makefile.new
cat Makefile.new > Makefile
sed 's@^$(TCLSH)@blah@' Makefile.new > Makefile
rm -f Makefile.new
echo " Executing: ${MAKE:-make} install"
${MAKE:-make} install TCL_EXE="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" || break
${MAKE:-make} install TCL_EXE="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" TCLSH="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" || break
LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
LD_RUN_PATH=".:${LD_RUN_PATH}"
export LD_LIBRARY_PATH LD_RUN_PATH
file tclsh tclsh*.exe 2>/dev/null | grep -iv 'No such file' > "${PROJROOTDIR}/platform.magic.file"
if [ -f tclsh*.exe ]; then
|
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
+
+
+
+
+
+
+
+
|
if [ -z "${PLATFORM}" ]; then
PLATFORM="$(./platform)"
fi
else
PLATFORM="${FORCE_PLATFORM}"
fi
export PLATFORM
# Set platform specific configuration
case "${PLATFORM}" in
solaris2*)
LDFLAGS="${LDFLAGS} -static-libgcc"
export LDFLAGS
;;
esac
# Build all appropriate directories
faileddirs=""
if [ -z "${DIRS}" ]; then
DIRS="`echo */`"
PKGHASHCODE=''
else
|