diff options
Diffstat (limited to 'dev-lang/perl/files/perl-5.10.1-hpux.patch')
-rw-r--r-- | dev-lang/perl/files/perl-5.10.1-hpux.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-lang/perl/files/perl-5.10.1-hpux.patch b/dev-lang/perl/files/perl-5.10.1-hpux.patch new file mode 100644 index 0000000..ca4ee52 --- /dev/null +++ b/dev-lang/perl/files/perl-5.10.1-hpux.patch @@ -0,0 +1,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 |