From b1b4baa3169c0408aa92c0367a80ca9acf1af4a1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 30 May 2014 16:15:27 -0700 Subject: printf, config.rpath: Port to FreeBSD 10. Problem reported by Tijl Coosemans in: http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html * build-aux/config.rpath (hardcode_libdir_flag_spec) (hardcode_direct): Simplify FreeBSD configuration. (library_names_spec): Don't mishandle FreeBSD 10+. * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE) (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F) (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99) (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99): Don't mishandle FreeBSD 10+ when cross-compiling. --- build-aux/config.rpath | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'build-aux/config.rpath') diff --git a/build-aux/config.rpath b/build-aux/config.rpath index ab6fd995f3..b625621fac 100755 --- a/build-aux/config.rpath +++ b/build-aux/config.rpath @@ -367,11 +367,7 @@ else dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; - freebsd2.2*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - freebsd2*) + freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; @@ -548,13 +544,11 @@ case "$host_os" in dgux*) library_names_spec='$libname$shrext' ;; + freebsd[23].*) + library_names_spec='$libname$shrext$versuffix' + ;; freebsd* | dragonfly*) - case "$host_os" in - freebsd[123]*) - library_names_spec='$libname$shrext$versuffix' ;; - *) - library_names_spec='$libname$shrext' ;; - esac + library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' -- cgit v1.2.1