summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@stack.nl>2011-10-30 10:53:43 +0100
committerNicholas Clark <nick@ccl4.org>2011-10-30 10:53:43 +0100
commitc66e013fd39470e69c07a870bbc2b5474887239d (patch)
treec39d7cc71118c2699bce7140c5acd78bbff6f64a /hints
parent2736f599d9224a1108df2cd12d6e100982abc0df (diff)
downloadperl-c66e013fd39470e69c07a870bbc2b5474887239d.tar.gz
Correct FreeBSD hints file for FreeBSD 10.0
Perl does not build on FreeBSD 10.0 because some checks in hints/freebsd.sh think FreeBSD 10 is FreeBSD 1 and therefore enable behaviour only appropriate for a.out systems. The below patch was included in the lang/perl5.12 port and fixes its build. The resulting binaries are also suitable to compile other ports. I have also verified that this patch applies to lang/perl5.10 and lang/perl5.14, making them build.
Diffstat (limited to 'hints')
-rw-r--r--hints/freebsd.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index c661fe81d1..a67c0bbb18 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -110,7 +110,8 @@ esac
case "$osvers" in
0.*|1.0*) ;;
-1*|2*) cccdlflags='-DPIC -fpic'
+1.*|2.*)
+ cccdlflags='-DPIC -fpic'
lddlflags="-Bshareable $lddlflags"
;;
@@ -140,7 +141,7 @@ case "$osvers" in
esac
case "$osvers" in
-0*|1*|2*|3*) ;;
+0.*|1.*|2.*|3.*) ;;
*)
ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
@@ -195,7 +196,7 @@ case "$usethreads" in
$define|true|[yY]*)
lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
case "$osvers" in
- 0*|1*|2.0*|2.1*) cat <<EOM >&4
+ 0.*|1.*|2.0*|2.1*) cat <<EOM >&4
I did not know that FreeBSD $osvers supports POSIX threads.
Feel free to tell perlbug@perl.org otherwise.