blob: ca4ee5256d5e8016559eeac57d8da39972c4a910 (
plain)
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
|
# do not assume '.' being in PATH on hpux,
# use 'gcc' as linker, link with '-lm'.
--- hints/hpux.sh
+++ hints/hpux.sh
@@ -190,7 +190,7 @@
$define|true|[Yy])
echo '#include <stdio.h>\nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c
$cc -o try $ccflags $ldflags try.c
- if [ "`try`" = "8" ]; then
+ if [ "`./try`" = "8" ]; then
case "$use64bitall" in
$define|true|[Yy]) ;;
*) cat <<EOM >&4
@@ -338,7 +338,7 @@
} /* main */
EOF
$cc -o try $ccflags $ldflags try.c
- maxdsiz=`try`
+ maxdsiz=`./try`
rm -f try try.c core
if [ $maxdsiz -le 64 ]; then
# 64 Mb is probably not enough to optimize toke.c
@@ -363,11 +363,12 @@
"") optimize="-g -O" ;;
*O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;;
esac
- #ld="$cc"
- ld=/usr/bin/ld
+ ld="$cc"
+ #ld=/usr/bin/ld
cccdlflags='-fPIC'
- #lddlflags='-shared'
- lddlflags='-b'
+ lddlflags='-shared'
+ #lddlflags='-b'
+ libs='-lm'
case "$optimize" in
*-g*-O*|*-O*-g*)
# gcc without gas will not accept -g
|