develooper Front page | perl.perl5.porters | Postings from September 2000

Re: [ID 20000924.003] OpenBSD hints file update

Thread Previous | Thread Next
From:
abigail
Date:
September 24, 2000 15:58
Subject:
Re: [ID 20000924.003] OpenBSD hints file update
Message ID:
20000924225626.22160.qmail@foad.org
On Sun, Sep 24, 2000 at 04:42:56PM -0600, Todd C. Miller wrote:
> 
> +	# Starting with OpenBSD 2.8 shared libs are generated using
> +	# "cc -shared" (for both a.out and elf)
> +	case "$osvers" in
> +	2.[89]|3*)
> +		ld=${cc:-cc}
> +		lddlflags="-shared $lddlflags"
> +		;;
> +	*)
> +		lddlflags="-Bshareable $lddlflags"
> +		;;
> +	esac
> +

But wouldn't that break starting with version 4, (or even version 2.10)?
Why not:

   	case "$osvers" in
   	[01].*|2.[0-7]|2.[0-7].*)
   		lddlflags="-Bshareable $lddlflags"
   		;;
   	*)
   		ld=${cc:-cc}
   		lddlflags="-shared $lddlflags"
   		;;
   	esac



Abigail

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About