[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FreeBSD: cater for deprecation of objformat
From: |
Ralf Wildenhues |
Subject: |
FreeBSD: cater for deprecation of objformat |
Date: |
Sun, 14 Aug 2005 10:30:24 +0200 |
User-agent: |
Mutt/1.5.9i |
The manpage of objformat reveals that upcoming FreeBSD 6 might not have
it any more. OK for this patch (all branches) to cater for this?
(I merely guessed that using versions up to 3 for aout should be safe.)
Should I rather cross-check this on one of their mailing lists?
Regards,
Ralf
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ freebsd ]: Do not
assume `aout' for modern FreeBSD by absence of deprecated
`objformat'.
Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.209
diff -u -r1.209 libtool.m4
--- m4/libtool.m4 10 Aug 2005 06:25:10 -0000 1.209
+++ m4/libtool.m4 14 Aug 2005 08:22:19 -0000
@@ -1939,7 +1939,14 @@
freebsd* | dragonfly*)
# DragonFly does not have aout. When/if they implement a new
# versioning mechanism, adjust this.
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[123]]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- FreeBSD: cater for deprecation of objformat,
Ralf Wildenhues <=