summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-11-13 07:22:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-11-13 07:22:39 (GMT)
commita25366cc980695cebe40c2d471bfe5166dcb28a2 (patch)
treef1ace43f51cc534d54018d9921d8d1ec8b708e0a
parentd4a0e3d293596dcd0412c7cc02f18addf44d03d5 (diff)
downloadhdf5-a25366cc980695cebe40c2d471bfe5166dcb28a2.zip
hdf5-a25366cc980695cebe40c2d471bfe5166dcb28a2.tar.gz
hdf5-a25366cc980695cebe40c2d471bfe5166dcb28a2.tar.bz2
Fixed that annoying ar warning about -u being ignored.
-rw-r--r--config/linux-gnulibc15
-rw-r--r--configure.ac2
-rw-r--r--src/libhdf5.settings.in1
3 files changed, 8 insertions, 0 deletions
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 39225e7..c32f64e 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -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
diff --git a/configure.ac b/configure.ac
index d8f3873..50893f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/src/libhdf5.settings.in b/src/libhdf5.settings.in
index 8017594..51b24dc 100644
--- a/src/libhdf5.settings.in
+++ b/src/libhdf5.settings.in
@@ -28,6 +28,7 @@ Linking Options:
AM_LDFLAGS: @AM_LDFLAGS@
Extra libraries: @LIBS@
Archiver: @AR@
+ AR_FLAGS: @AR_FLAGS@
Ranlib: @RANLIB@
Languages: