Hi,
the below patch makes sure that FreeBSD-10 and up gets properly detected
in config.rpath.
Ok?
I'm going to apply the same patch on gcc trunk and gcc-4.6.
Thanks,
Andreas
2011-11-28 Andreas Tobler <andre...@fgznet.ch>
* config.rpath (ld_shlibs): Fix detection of FreeBSD-10 and up.
(libname_spec): Likewise.
Index: config.rpath
===================================================================
--- config.rpath (revision 181783)
+++ config.rpath (working copy)
@@ -361,7 +361,7 @@
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
- freebsd2*)
+ freebsd2.*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
@@ -533,7 +533,7 @@
;;
freebsd* | dragonfly*)
case "$host_os" in
- freebsd[123]*)
+ freebsd[23].*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;