Fixed that annoying ar warning about -u being ignored.

This commit is contained in:
Dana Robinson 2017-11-12 23:22:39 -08:00
parent d4a0e3d293
commit a25366cc98
3 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,11 @@ if test -z "$CC"; then
fi
fi
# Set flags for gnu ar (apparently via libtool, so AR_FLAGS, not ARFLAGS)
# If you don't do this, you will get warnings about the 'u' in
# automake's default 'cru' args.
AR_FLAGS=crD
# Figure out GNU C compiler flags
. $srcdir/config/gnu-flags

View File

@ -99,6 +99,7 @@ AC_CONFIG_COMMANDS([pubconf], [
AC_CANONICAL_HOST
AC_SUBST([CPPFLAGS])
AC_SUBST([JNIFLAGS])
AC_SUBST([AR_FLAGS])
## H5_CFLAGS (and company) are for CFLAGS that should be used on HDF5, but
## not exported to h5cc (or h5fc, etc.)
@ -139,6 +140,7 @@ JNIFLAGS="${JNIFLAGS}"
JAVACFLAGS="${JAVACFLAGS}"
JAVAFLAGS="${JAVAFLAGS}"
LDFLAGS="${LDFLAGS}"
AR_FLAGS="${AR_FLAGS}"
## Configure may need to alter any of the *FLAGS variables in order for
## various checks to work correctly. Save the user's value here so it

View File

@ -28,6 +28,7 @@ Linking Options:
AM_LDFLAGS: @AM_LDFLAGS@
Extra libraries: @LIBS@
Archiver: @AR@
AR_FLAGS: @AR_FLAGS@
Ranlib: @RANLIB@
Languages: