roland 04c2ad
--- elfutils/backends/ChangeLog
roland 04c2ad
+++ elfutils/backends/ChangeLog
roland 3cd46a
@@ -1,3 +1,8 @@
roland 3cd46a
+2005-11-22  Roland McGrath  <roland@redhat.com>
roland 3cd46a
+
roland 3cd46a
+	* Makefile.am (LD_AS_NEEDED): New variable, substituted by configure.
roland 3cd46a
+	(libebl_%.so rule): Use it in place of -Wl,--as-needed.
roland 3cd46a
+
roland 3cd46a
 2005-11-19  Roland McGrath  <roland@redhat.com>
roland 3cd46a
 
roland 3cd46a
 	* ppc64_reloc.def: REL30 -> ADDR30.
roland 3cd46a
@@ -20,6 +25,9 @@
roland 04c2ad
 	* Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
roland 04c2ad
 	(CLEANFILES): Add libebl_$(m).so.
roland 04c2ad
 
roland 04c2ad
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 04c2ad
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 04c2ad
+
roland 04c2ad
 	* ppc_reloc.def: Update bits per Alan Modra <amodra@bigpond.net.au>.
roland 04c2ad
 	* ppc64_reloc.def: Likewise.
roland 04c2ad
 
roland 04c2ad
--- elfutils/backends/Makefile.am
roland 04c2ad
+++ elfutils/backends/Makefile.am
roland 3cd46a
@@ -13,12 +13,14 @@
roland 04c2ad
 ## 3001 King Ranch Road, Ukiah, CA 95482.
roland 04c2ad
 ##
roland 04c2ad
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
roland 04c2ad
+WEXTRA = @WEXTRA@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 04c2ad
 if MUDFLAP
roland 04c2ad
 AM_CFLAGS = -fmudflap
roland 04c2ad
 else
roland 04c2ad
 AM_CFLAGS =
roland 04c2ad
 endif
roland 04c2ad
-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
roland 04c2ad
+AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
roland 04c2ad
 	     -std=gnu99
roland 04c2ad
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl \
roland 04c2ad
 	   -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
roland 3cd46a
@@ -51,7 +53,7 @@ textrel_check = if readelf -d $@ | fgrep
roland 3cd46a
 libebl_%.so: libebl_%_pic.a libebl_%.map $(libelf) $(libdw)
roland 3cd46a
 	$(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
roland 3cd46a
 		-Wl,--version-script,$(word 2,$^) \
roland 3cd46a
-		-Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap)
roland 3cd46a
+		-Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap)
roland 3cd46a
 	$(textrel_check)
roland 3cd46a
 
roland 3cd46a
 libebl_%.map: Makefile
roland 04c2ad
--- elfutils/backends/Makefile.in
roland 04c2ad
+++ elfutils/backends/Makefile.in
roland 3cd46a
@@ -156,6 +156,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -191,6 +192,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland 04c2ad
 USE_NLS = @USE_NLS@
roland 04c2ad
 VERSION = @VERSION@
roland 04c2ad
+WEXTRA = @WEXTRA@
roland 04c2ad
 XGETTEXT = @XGETTEXT@
roland 04c2ad
 YACC = @YACC@
roland 04c2ad
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -233,9 +235,9 @@ sharedstatedir = @sharedstatedir@
roland 04c2ad
 sysconfdir = @sysconfdir@
roland 04c2ad
 target_alias = @target_alias@
roland 04c2ad
 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
roland 04c2ad
-@MUDFLAP_FALSE@	-Wextra -Wformat=2 -std=gnu99
roland 04c2ad
+@MUDFLAP_FALSE@	$(WEXTRA) -Wformat=2 -std=gnu99
roland 04c2ad
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
roland 04c2ad
-@MUDFLAP_TRUE@	-Wunused -Wextra -Wformat=2 -std=gnu99
roland 04c2ad
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) -Wformat=2 -std=gnu99
roland 04c2ad
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl \
roland 04c2ad
 	   -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
roland 04c2ad
 	   -I$(top_srcdir)/lib -I..
roland 3cd46a
@@ -583,7 +585,7 @@ uninstall-am: uninstall-info-am
roland 3cd46a
 libebl_%.so: libebl_%_pic.a libebl_%.map $(libelf) $(libdw)
roland 3cd46a
 	$(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
roland 3cd46a
 		-Wl,--version-script,$(word 2,$^) \
roland 3cd46a
-		-Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap)
roland 3cd46a
+		-Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap)
roland 3cd46a
 	$(textrel_check)
roland 3cd46a
 
roland 3cd46a
 libebl_%.map: Makefile
roland 2c9c7d
--- elfutils/ChangeLog
roland 2c9c7d
+++ elfutils/ChangeLog
roland 3cd46a
@@ -1,3 +1,7 @@
roland 3cd46a
+2005-11-22  Roland McGrath  <roland@redhat.com>
roland 3cd46a
+
roland 3cd46a
+	* configure.ac: Check for --as-needed linker option.
roland 3cd46a
+
roland 3cd46a
 2005-11-18  Roland McGrath  <roland@redhat.com>
roland 3cd46a
 
roland 3cd46a
 	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
roland 3cd46a
@@ -45,6 +49,17 @@
roland 6afeb4
 	* Makefile.am (all_SUBDIRS): Add libdwfl.
roland 6afeb4
 	* configure.ac: Write libdwfl/Makefile.
roland 6afeb4
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 678843
+
roland 678843
+	* configure.ac (WEXTRA): Check for -Wextra and set this substitution.
roland 678843
+
roland 6afeb4
+ 	* configure.ac: Check for struct stat st_?tim members.
roland 6afeb4
+ 	* src/strip.c (process_file): Use st_?time if st_?tim are not there.
roland 678843
+
roland 6afeb4
+ 	* configure.ac: Check for futimes function.
roland 6afeb4
+ 	* src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.
roland 6afeb4
+ 	(handle_ar) [! HAVE_FUTIMES]: Likewise.
roland 678843
+
roland 6afeb4
 2005-05-19  Roland McGrath  <roland@redhat.com>
roland 678843
 
roland 6afeb4
 	* configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
roland 2c9c7d
--- elfutils/config/Makefile.in
roland 2c9c7d
+++ elfutils/config/Makefile.in
roland 3cd46a
@@ -84,6 +84,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -119,6 +120,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 2c9c7d
--- elfutils/configure
roland 2c9c7d
+++ elfutils/configure
roland 04c2ad
@@ -276,7 +276,7 @@ PACKAGE_STRING='Red Hat elfutils 0.117'
roland b73b6e
 PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
roland b73b6e
 
roland b73b6e
 ac_unique_file="libelf/libelf.h"
roland 04c2ad
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MODVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT LOCALEDIR DATADIRNAME NATIVE_LD_TRUE NATIVE_LD_FALSE base_cpu MUDFLAP_TRUE MUDFLAP_FALSE GPROF_TRUE GPROF_FALSE GCOV_TRUE GCOV_FALSE BUILD_STATIC_TRUE BUILD_STATIC_FALSE TESTS_RPATH_TRUE TESTS_RPATH_FALSE LIBEBL_SUBDIR HAVE_LIBASM_TRUE HAVE_LIBASM_FALSE STANDALONE_TRUE STANDALONE_FALSE USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
roland 3cd46a
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MODVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT WEXTRA LD_AS_NEEDED LOCALEDIR DATADIRNAME NATIVE_LD_TRUE NATIVE_LD_FALSE base_cpu MUDFLAP_TRUE MUDFLAP_FALSE GPROF_TRUE GPROF_FALSE GCOV_TRUE GCOV_FALSE BUILD_STATIC_TRUE BUILD_STATIC_FALSE TESTS_RPATH_TRUE TESTS_RPATH_FALSE LIBEBL_SUBDIR HAVE_LIBASM_TRUE HAVE_LIBASM_FALSE STANDALONE_TRUE STANDALONE_FALSE USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
roland b73b6e
 ac_subst_files=''
roland b73b6e
 
roland b73b6e
 # Initialize some variables set by options.
roland 3cd46a
@@ -3385,6 +3385,92 @@ echo "$as_me: error: gcc with C99 suppor
roland b73b6e
 fi
roland b73b6e
 
roland b73b6e
 
roland b73b6e
+echo "$as_me:$LINENO: checking for -Wextra option to $CC" >&5
roland b73b6e
+echo $ECHO_N "checking for -Wextra option to $CC... $ECHO_C" >&6
roland b73b6e
+if test "${ac_cv_cc_wextra+set}" = set; then
roland b73b6e
+  echo $ECHO_N "(cached) $ECHO_C" >&6
roland b73b6e
+else
roland b73b6e
+  old_CFLAGS="$CFLAGS"
roland b73b6e
+CFLAGS="$CFLAGS -Wextra"
roland b73b6e
+cat >conftest.$ac_ext <<_ACEOF
roland b73b6e
+void foo (void) { }
roland b73b6e
+_ACEOF
roland b73b6e
+rm -f conftest.$ac_objext
roland b73b6e
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
roland b73b6e
+  (eval $ac_compile) 2>conftest.er1
roland b73b6e
+  ac_status=$?
roland b73b6e
+  grep -v '^ *+' conftest.er1 >conftest.err
roland b73b6e
+  rm -f conftest.er1
roland b73b6e
+  cat conftest.err >&5
roland b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
roland b73b6e
+  (exit $ac_status); } &&
roland b73b6e
+	 { ac_try='test -z "$ac_c_werror_flag"
roland b73b6e
+			 || test ! -s conftest.err'
roland b73b6e
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
roland b73b6e
+  (eval $ac_try) 2>&5
roland b73b6e
+  ac_status=$?
roland b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
roland b73b6e
+  (exit $ac_status); }; } &&
roland b73b6e
+	 { ac_try='test -s conftest.$ac_objext'
roland b73b6e
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
roland b73b6e
+  (eval $ac_try) 2>&5
roland b73b6e
+  ac_status=$?
roland b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
roland b73b6e
+  (exit $ac_status); }; }; then
roland 2b510d
+  ac_cv_cc_wextra=yes
roland b73b6e
+else
roland b73b6e
+  echo "$as_me: failed program was:" >&5
roland b73b6e
+sed 's/^/| /' conftest.$ac_ext >&5
roland b73b6e
+
roland b73b6e
+ac_cv_cc_wextra=no
roland b73b6e
+fi
roland b73b6e
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
roland b73b6e
+CFLAGS="$old_CFLAGS"
roland b73b6e
+fi
roland b73b6e
+echo "$as_me:$LINENO: result: $ac_cv_cc_wextra" >&5
roland b73b6e
+echo "${ECHO_T}$ac_cv_cc_wextra" >&6
roland b73b6e
+
roland 6afeb4
+if test "x$ac_cv_cc_wextra" = xyes; then
roland b73b6e
+  WEXTRA=-Wextra
roland 678843
+else
roland 678843
+  WEXTRA=-W
roland b73b6e
+fi
roland b73b6e
+
roland b73b6e
+
roland 3cd46a
+echo "$as_me:$LINENO: checking for --as-needed linker option" >&5
roland 3cd46a
+echo $ECHO_N "checking for --as-needed linker option... $ECHO_C" >&6
roland 3cd46a
+if test "${ac_cv_as_needed+set}" = set; then
roland 3cd46a
+  echo $ECHO_N "(cached) $ECHO_C" >&6
roland 3cd46a
+else
roland 3cd46a
+  cat > conftest.c <
roland 3cd46a
+int main (void) { return 0; }
roland 3cd46a
+EOF
roland 3cd46a
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
roland 3cd46a
+			    -fPIC -shared -o conftest.so conftest.c
roland 3cd46a
+			    -Wl,--as-needed 1>&5'
roland 3cd46a
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
roland 3cd46a
+  (eval $ac_try) 2>&5
roland 3cd46a
+  ac_status=$?
roland 3cd46a
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
roland 3cd46a
+  (exit $ac_status); }; }
roland 3cd46a
+then
roland 3cd46a
+  ac_cv_as_needed=yes
roland 3cd46a
+else
roland 3cd46a
+  ac_cv_as_needed=no
roland 3cd46a
+fi
roland 3cd46a
+rm -f conftest*
roland 3cd46a
+fi
roland 3cd46a
+echo "$as_me:$LINENO: result: $ac_cv_as_needed" >&5
roland 3cd46a
+echo "${ECHO_T}$ac_cv_as_needed" >&6
roland 3cd46a
+if test "x$ac_cv_as_needed" = xyes; then
roland 3cd46a
+  LD_AS_NEEDED=-Wl,--as-needed
roland 3cd46a
+else
roland 3cd46a
+  LD_AS_NEEDED=
roland 3cd46a
+fi
roland 3cd46a
+
roland 3cd46a
+
roland 3cd46a
+
roland 3cd46a
+
roland b73b6e
 LOCALEDIR=$datadir
roland b73b6e
 
roland b73b6e
 cat >>confdefs.h <<_ACEOF
roland 3cd46a
@@ -4987,6 +5073,8 @@ s,@YACC@,$YACC,;t t
roland b73b6e
 s,@LEX@,$LEX,;t t
roland b73b6e
 s,@LEXLIB@,$LEXLIB,;t t
roland b73b6e
 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
roland b73b6e
+s,@WEXTRA@,$WEXTRA,;t t
roland 3cd46a
+s,@LD_AS_NEEDED@,$LD_AS_NEEDED,;t t
roland b73b6e
 s,@LOCALEDIR@,$LOCALEDIR,;t t
roland b73b6e
 s,@DATADIRNAME@,$DATADIRNAME,;t t
roland b73b6e
 s,@NATIVE_LD_TRUE@,$NATIVE_LD_TRUE,;t t
roland 2c9c7d
--- elfutils/configure.ac
roland 2c9c7d
+++ elfutils/configure.ac
roland 3cd46a
@@ -69,6 +69,34 @@ CFLAGS="$old_CFLAGS"])
Jakub Jelinek a769ac
 AS_IF([test "x$ac_cv_c99" != xyes],
Jakub Jelinek a769ac
       AC_MSG_ERROR([gcc with C99 support required]))
Jakub Jelinek a769ac
 
Jakub Jelinek a769ac
+AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl
Jakub Jelinek a769ac
+old_CFLAGS="$CFLAGS"
Jakub Jelinek a769ac
+CFLAGS="$CFLAGS -Wextra"
Jakub Jelinek a769ac
+AC_COMPILE_IFELSE([void foo (void) { }],
roland 2b510d
+		  ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
Jakub Jelinek a769ac
+CFLAGS="$old_CFLAGS"])
Jakub Jelinek a769ac
+AC_SUBST(WEXTRA)
roland 6afeb4
+AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W])
Jakub Jelinek a769ac
+
roland 3cd46a
+AC_CACHE_CHECK([for --as-needed linker option],
roland 3cd46a
+	       ac_cv_as_needed, [dnl
roland 3cd46a
+cat > conftest.c <
roland 3cd46a
+int main (void) { return 0; }
roland 3cd46a
+EOF
roland 3cd46a
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
roland 3cd46a
+			    -fPIC -shared -o conftest.so conftest.c
roland 3cd46a
+			    -Wl,--as-needed 1>&AS_MESSAGE_LOG_FD])
roland 3cd46a
+then
roland 3cd46a
+  ac_cv_as_needed=yes
roland 3cd46a
+else
roland 3cd46a
+  ac_cv_as_needed=no
roland 3cd46a
+fi
roland 3cd46a
+rm -f conftest*])
roland 3cd46a
+AS_IF([test "x$ac_cv_as_needed" = xyes],
roland 3cd46a
+      [LD_AS_NEEDED=-Wl,--as-needed], [LD_AS_NEEDED=])
roland 3cd46a
+AC_SUBST(LD_AS_NEEDED)
roland 3cd46a
+
roland 3cd46a
+
Jakub Jelinek a769ac
 LOCALEDIR=$datadir
Jakub Jelinek a769ac
 AC_SUBST(LOCALEDIR)
Jakub Jelinek a769ac
 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
roland 2c9c7d
--- elfutils/lib/ChangeLog
roland 2c9c7d
+++ elfutils/lib/ChangeLog
roland 4af02c
@@ -12,6 +12,11 @@
roland 76905f
 	* Makefile.am (libeu_a_SOURCES): Add it.
roland 76905f
 	* system.h: Declare crc32_file.
roland 76905f
 
Jakub Jelinek a769ac
+2005-02-07  Roland McGrath  <roland@redhat.com>
Jakub Jelinek a769ac
+
Jakub Jelinek a769ac
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
Jakub Jelinek a769ac
+	(AM_CFLAGS): Use it in place of -Wextra.
Jakub Jelinek a769ac
+
roland 76905f
 2005-04-30  Ulrich Drepper  <drepper@redhat.com>
Jakub Jelinek a769ac
 
roland 76905f
 	* Makefile.am: Use -ffunction-sections for xmalloc.c.
roland 2c9c7d
--- elfutils/lib/Makefile.am
roland 2c9c7d
+++ elfutils/lib/Makefile.am
roland b73b6e
@@ -16,12 +16,13 @@
Jakub Jelinek a769ac
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Jakub Jelinek a769ac
 ##
Jakub Jelinek a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
Jakub Jelinek a769ac
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
Jakub Jelinek a769ac
 AM_CFLAGS =
Jakub Jelinek a769ac
 endif
Jakub Jelinek a769ac
-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
Jakub Jelinek a769ac
+AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) $($(*F)_CFLAGS)
Jakub Jelinek a769ac
 INCLUDES = -I$(srcdir)/../libelf -I..
Jakub Jelinek a769ac
 
Jakub Jelinek a769ac
 noinst_LIBRARIES = libeu.a
roland 2c9c7d
--- elfutils/lib/Makefile.in
roland 2c9c7d
+++ elfutils/lib/Makefile.in
roland 3cd46a
@@ -106,6 +106,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -141,6 +142,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -183,9 +185,9 @@ sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
roland b73b6e
-@MUDFLAP_FALSE@	-Wextra $($(*F)_CFLAGS)
roland b73b6e
+@MUDFLAP_FALSE@	$(WEXTRA) $($(*F)_CFLAGS)
roland b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
roland b73b6e
-@MUDFLAP_TRUE@	-Wunused -Wextra $($(*F)_CFLAGS)
roland b73b6e
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) $($(*F)_CFLAGS)
roland b73b6e
 INCLUDES = -I$(srcdir)/../libelf -I..
roland b73b6e
 noinst_LIBRARIES = libeu.a
roland 76905f
 libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
roland 6afeb4
--- elfutils/libasm/ChangeLog
roland 6afeb4
+++ elfutils/libasm/ChangeLog
roland 04c2ad
@@ -28,6 +28,11 @@
roland 455bc4
 	* asm_error.c: Add new error ASM_E_IOERROR.
roland 455bc4
 	* libasmP.h: Add ASM_E_IOERROR definition.
roland 455bc4
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
roland 6afeb4
 
roland 455bc4
 	* Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
roland 2c9c7d
--- elfutils/libasm/Makefile.am
roland 2c9c7d
+++ elfutils/libasm/Makefile.am
roland b73b6e
@@ -13,12 +13,13 @@
Jakub Jelinek a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
Jakub Jelinek a769ac
 ##
Jakub Jelinek a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
Jakub Jelinek a769ac
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
Jakub Jelinek a769ac
 AM_CFLAGS =
Jakub Jelinek a769ac
 endif
roland 455bc4
-AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
roland 455bc4
+AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2
roland 04c2ad
 INCLUDES = -I. -I$(srcdir) -I.. \
roland 04c2ad
 	   -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw\
Jakub Jelinek a769ac
 	   -I$(top_srcdir)/lib
roland 2c9c7d
--- elfutils/libasm/Makefile.in
roland 2c9c7d
+++ elfutils/libasm/Makefile.in
roland 3cd46a
@@ -138,6 +138,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -173,6 +174,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = 1
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -215,9 +217,9 @@ sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland 455bc4
 @MUDFLAP_FALSE@AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Werror -Wunused \
roland 455bc4
-@MUDFLAP_FALSE@	-Wextra -Wformat=2
roland 455bc4
+@MUDFLAP_FALSE@	$(WEXTRA) -Wformat=2
roland 455bc4
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -std=gnu99 -Wall -Wshadow -Werror \
roland 455bc4
-@MUDFLAP_TRUE@	-Wunused -Wextra -Wformat=2
roland 455bc4
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) -Wformat=2
roland 04c2ad
 INCLUDES = -I. -I$(srcdir) -I.. \
roland 04c2ad
 	   -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw\
roland b73b6e
 	   -I$(top_srcdir)/lib
roland 2c9c7d
--- elfutils/libcpu/ChangeLog
roland 2c9c7d
+++ elfutils/libcpu/ChangeLog
roland 678843
@@ -1,3 +1,8 @@
roland 678843
+2005-04-04  Roland McGrath  <roland@redhat.com>
roland 678843
+
roland 678843
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 678843
+	(AM_CFLAGS): Use it instead of -Wextra.
roland 678843
+
roland 678843
 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
roland 678843
 
roland 678843
 	* Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
roland 2c9c7d
--- elfutils/libcpu/Makefile.am
roland 2c9c7d
+++ elfutils/libcpu/Makefile.am
roland c881c2
@@ -13,7 +13,8 @@
roland c881c2
 ## 3001 King Ranch Road, Ukiah, CA 95482.
roland c881c2
 ##
roland c881c2
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
roland c881c2
-AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
roland c881c2
+WEXTRA = @WEXTRA@
roland c881c2
+AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
roland c881c2
 INCLUDES = -I$(srcdir)
roland c881c2
 
roland c881c2
 noinst_LIBRARIES = libcpu_i386.a
roland 2c9c7d
--- elfutils/libcpu/Makefile.in
roland 2c9c7d
+++ elfutils/libcpu/Makefile.in
roland 3cd46a
@@ -101,6 +101,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -136,6 +137,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -177,7 +179,7 @@ sbindir = @sbindir@
roland b73b6e
 sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland b73b6e
-AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
roland b73b6e
+AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
roland b73b6e
 INCLUDES = -I$(srcdir)
roland b73b6e
 noinst_LIBRARIES = libcpu_i386.a
roland b73b6e
 libcpu_i386_a_SOURCES = i386_dis.c
roland 6afeb4
--- elfutils/libdw/ChangeLog
roland 6afeb4
+++ elfutils/libdw/ChangeLog
roland 04c2ad
@@ -247,6 +247,11 @@
roland 6afeb4
 
roland 6afeb4
 2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
 
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
 	* dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
roland 6afeb4
 	formref offset.
roland 6afeb4
 
roland 2c9c7d
--- elfutils/libdw/Makefile.am
roland 2c9c7d
+++ elfutils/libdw/Makefile.am
roland 04c2ad
@@ -13,6 +13,7 @@
Jakub Jelinek a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
Jakub Jelinek a769ac
 ##
roland 6afeb4
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DIS_LIBDW
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
Jakub Jelinek a769ac
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
roland 04c2ad
@@ -21,7 +22,7 @@ endif
roland 04c2ad
 if BUILD_STATIC
roland 04c2ad
 AM_CFLAGS += -fpic
Jakub Jelinek a769ac
 endif
Jakub Jelinek a769ac
-AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
Jakub Jelinek a769ac
+AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
Jakub Jelinek a769ac
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
Jakub Jelinek a769ac
 VERSION = 1
Jakub Jelinek a769ac
 
roland 2c9c7d
--- elfutils/libdw/Makefile.in
roland 2c9c7d
+++ elfutils/libdw/Makefile.in
roland 3cd46a
@@ -178,6 +178,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -213,6 +214,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = 1
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -255,9 +257,10 @@ sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland 04c2ad
 @MUDFLAP_FALSE@AM_CFLAGS = $(am__append_1) -Wall -Werror -Wshadow \
roland 04c2ad
-@MUDFLAP_FALSE@	-Wunused -Wformat=2 -Wextra -std=gnu99
roland 04c2ad
+@MUDFLAP_FALSE@	-Wunused -Wformat=2 $(WEXTRA) -std=gnu99
roland 04c2ad
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap $(am__append_1) -Wall -Werror \
roland 04c2ad
-@MUDFLAP_TRUE@	-Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
roland 04c2ad
+@MUDFLAP_TRUE@	-Wshadow -Wunused -Wformat=2 $(WEXTRA) \
roland 04c2ad
+@MUDFLAP_TRUE@	-std=gnu99
roland b73b6e
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
roland 4af02c
 COMPILE.os = $(filter-out -fprofile-arcs, $(filter-out -ftest-coverage, \
roland 4af02c
 						       $(COMPILE)))
roland 6afeb4
--- elfutils/libdwfl/ChangeLog
roland 6afeb4
+++ elfutils/libdwfl/ChangeLog
roland 04c2ad
@@ -223,6 +223,11 @@
roland f71f40
 
roland 6afeb4
 2005-07-21  Roland McGrath  <roland@redhat.com>
roland 6afeb4
 
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
+2005-07-21  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
 	* Makefile.am (noinst_HEADERS): Add loc2c.c.
roland 6afeb4
 
roland 6afeb4
 	* test2.c (main): Check sscanf result to quiet warning.
roland 6afeb4
--- elfutils/libdwfl/Makefile.am
roland 6afeb4
+++ elfutils/libdwfl/Makefile.am
roland b50442
@@ -15,12 +15,13 @@
roland 6afeb4
 ## 3001 King Ranch Road, Ukiah, CA 95482.
roland 6afeb4
 ##
roland 6afeb4
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
roland 6afeb4
+WEXTRA = @WEXTRA@
roland 6afeb4
 if MUDFLAP
roland 6afeb4
 AM_CFLAGS = -fmudflap
roland 6afeb4
 else
roland 6afeb4
 AM_CFLAGS =
roland 6afeb4
 endif
roland 6afeb4
-AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
roland 6afeb4
+AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
roland 6afeb4
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
roland 6afeb4
 	   -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
roland 6afeb4
 VERSION = 1
roland 6afeb4
--- elfutils/libdwfl/Makefile.in
roland 6afeb4
+++ elfutils/libdwfl/Makefile.in
roland 3cd46a
@@ -135,6 +135,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -170,6 +171,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland 6afeb4
 USE_NLS = @USE_NLS@
roland 6afeb4
 VERSION = 1
roland 6afeb4
+WEXTRA = @WEXTRA@
roland 6afeb4
 XGETTEXT = @XGETTEXT@
roland 6afeb4
 YACC = @YACC@
roland 6afeb4
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -212,9 +214,9 @@ sharedstatedir = @sharedstatedir@
roland 6afeb4
 sysconfdir = @sysconfdir@
roland 6afeb4
 target_alias = @target_alias@
roland 6afeb4
 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
roland 6afeb4
-@MUDFLAP_FALSE@	-Wextra -std=gnu99
roland 6afeb4
+@MUDFLAP_FALSE@	$(WEXTRA) -std=gnu99
roland 6afeb4
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
roland 6afeb4
-@MUDFLAP_TRUE@	-Wformat=2 -Wextra -std=gnu99
roland 6afeb4
+@MUDFLAP_TRUE@	-Wformat=2 $(WEXTRA) -std=gnu99
roland 6afeb4
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
roland 6afeb4
 	   -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
roland 6afeb4
 
roland 6afeb4
--- elfutils/libebl/ChangeLog
roland 6afeb4
+++ elfutils/libebl/ChangeLog
roland 04c2ad
@@ -391,6 +391,11 @@
roland 6afeb4
 	* Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
roland 6afeb4
 	tracking works right.
roland 6afeb4
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
 2005-05-21  Ulrich Drepper  <drepper@redhat.com>
roland 6afeb4
 
roland 6afeb4
 	* libebl_x86_64.map: Add x86_64_core_note.
roland 2c9c7d
--- elfutils/libebl/Makefile.am
roland 2c9c7d
+++ elfutils/libebl/Makefile.am
roland b73b6e
@@ -13,12 +13,13 @@
Jakub Jelinek a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
Jakub Jelinek a769ac
 ##
Jakub Jelinek a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
Jakub Jelinek a769ac
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
Jakub Jelinek a769ac
 AM_CFLAGS =
Jakub Jelinek a769ac
 endif
Jakub Jelinek a769ac
-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
Jakub Jelinek a769ac
+AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
Jakub Jelinek a769ac
 	     -std=gnu99
Jakub Jelinek a769ac
 
roland 04c2ad
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
roland 2c9c7d
--- elfutils/libebl/Makefile.in
roland 2c9c7d
+++ elfutils/libebl/Makefile.in
roland 3cd46a
@@ -131,6 +131,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -166,6 +167,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = 1
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -208,9 +210,9 @@ sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
roland b73b6e
-@MUDFLAP_FALSE@	-Wextra -Wformat=2 -std=gnu99
roland b73b6e
+@MUDFLAP_FALSE@	$(WEXTRA) -Wformat=2 -std=gnu99
roland b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
roland b73b6e
-@MUDFLAP_TRUE@	-Wunused -Wextra -Wformat=2 -std=gnu99
roland b73b6e
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) -Wformat=2 -std=gnu99
roland 04c2ad
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
roland 04c2ad
 	   -I$(top_srcdir)/lib -I..
roland 04c2ad
 
roland 6afeb4
--- elfutils/libelf/ChangeLog
roland 6afeb4
+++ elfutils/libelf/ChangeLog
roland 04c2ad
@@ -103,6 +103,11 @@
roland f71f40
 	If section content hasn't been read yet, do it before looking for the
roland f71f40
 	block size.  If no section data present, infer size of section header.
roland f71f40
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
roland 6afeb4
 
roland 6afeb4
 	* elf.h: Update again.
roland 6afeb4
--- elfutils/libelf/common.h
roland 6afeb4
+++ elfutils/libelf/common.h
roland 6afeb4
@@ -122,7 +122,7 @@ libelf_release_all (Elf *elf)
roland 6afeb4
   (Var) = (sizeof (Var) == 1						      \
roland 6afeb4
 	   ? (unsigned char) (Var)					      \
roland 6afeb4
 	   : (sizeof (Var) == 2						      \
roland 6afeb4
-	      ? bswap_16 (Var)						      \
roland 6afeb4
+	      ? (unsigned short int) bswap_16 (Var)			      \
roland 6afeb4
 	      : (sizeof (Var) == 4					      \
roland 6afeb4
 		 ? bswap_32 (Var)					      \
roland 6afeb4
 		 : bswap_64 (Var))))
roland 6afeb4
@@ -131,7 +131,7 @@ libelf_release_all (Elf *elf)
roland 6afeb4
   (Dst) = (sizeof (Var) == 1						      \
roland 6afeb4
 	   ? (unsigned char) (Var)					      \
roland 6afeb4
 	   : (sizeof (Var) == 2						      \
roland 6afeb4
-	      ? bswap_16 (Var)						      \
roland 6afeb4
+	      ? (unsigned short int) bswap_16 (Var)			      \
roland 6afeb4
 	      : (sizeof (Var) == 4					      \
roland 6afeb4
 		 ? bswap_32 (Var)					      \
roland 6afeb4
 		 : bswap_64 (Var))))
roland 2c9c7d
--- elfutils/libelf/Makefile.am
roland 2c9c7d
+++ elfutils/libelf/Makefile.am
roland 06757f
@@ -16,6 +16,7 @@
Jakub Jelinek a769ac
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Jakub Jelinek a769ac
 ##
Jakub Jelinek a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
roland 06757f
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
roland b50442
@@ -24,7 +25,10 @@ endif
roland 06757f
 if BUILD_STATIC
roland 06757f
 AM_CFLAGS += -fpic
Jakub Jelinek a769ac
 endif
Jakub Jelinek a769ac
-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
roland b50442
+if BUILD_STATIC
roland b50442
+AM_CFLAGS += -fpic
roland b50442
+endif
Jakub Jelinek a769ac
+AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
Jakub Jelinek a769ac
 	     $($(*F)_CFLAGS)
Jakub Jelinek a769ac
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
Jakub Jelinek a769ac
 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
roland 2c9c7d
--- elfutils/libelf/Makefile.in
roland 2c9c7d
+++ elfutils/libelf/Makefile.in
roland b50442
@@ -40,7 +40,7 @@ PRE_UNINSTALL = :
roland b50442
 POST_UNINSTALL = :
roland b50442
 build_triplet = @build@
roland b50442
 host_triplet = @host@
roland b50442
-@BUILD_STATIC_TRUE@am__append_1 = -fpic
roland b50442
+@BUILD_STATIC_TRUE@am__append_1 = -fpic -fpic
roland b50442
 @MUDFLAP_FALSE@noinst_PROGRAMS = $(am__EXEEXT_1)
roland b50442
 @MUDFLAP_TRUE@am_libelf_pic_a_OBJECTS =
roland b50442
 subdir = libelf
roland 3cd46a
@@ -181,6 +181,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -216,6 +217,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = 1
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -258,10 +260,10 @@ sharedstatedir = @sharedstatedir@
roland b73b6e
 sysconfdir = @sysconfdir@
roland b73b6e
 target_alias = @target_alias@
roland 06757f
 @MUDFLAP_FALSE@AM_CFLAGS = $(am__append_1) -Wall -Wshadow -Werror \
roland 06757f
-@MUDFLAP_FALSE@	-Wunused -Wextra -Wformat=2 -std=gnu99 \
roland 06757f
+@MUDFLAP_FALSE@	-Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
roland 06757f
 @MUDFLAP_FALSE@	$($(*F)_CFLAGS)
roland 06757f
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap $(am__append_1) -Wall -Wshadow \
roland 06757f
-@MUDFLAP_TRUE@	-Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
roland 06757f
+@MUDFLAP_TRUE@	-Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
roland b73b6e
 @MUDFLAP_TRUE@	$($(*F)_CFLAGS)
roland b73b6e
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
roland b73b6e
 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
roland 2c9c7d
--- elfutils/m4/Makefile.in
roland 2c9c7d
+++ elfutils/m4/Makefile.in
roland 3cd46a
@@ -82,6 +82,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -117,6 +118,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland 6afeb4
 USE_NLS = @USE_NLS@
roland 6afeb4
 VERSION = @VERSION@
roland 6afeb4
+WEXTRA = @WEXTRA@
roland 6afeb4
 XGETTEXT = @XGETTEXT@
roland 6afeb4
 YACC = @YACC@
roland 6afeb4
 ac_ct_CC = @ac_ct_CC@
roland 6afeb4
--- elfutils/Makefile.in
roland 6afeb4
+++ elfutils/Makefile.in
roland 3cd46a
@@ -106,6 +106,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -141,6 +142,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 6afeb4
--- elfutils/src/ChangeLog
roland 6afeb4
+++ elfutils/src/ChangeLog
roland 07e7ea
@@ -220,6 +220,11 @@
roland 6afeb4
 	* readelf.c (print_debug_loc_section): Fix indentation for larger
roland 6afeb4
 	address size.
roland 6afeb4
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
 2005-05-30  Roland McGrath  <roland@redhat.com>
roland 6afeb4
 
roland 6afeb4
 	* readelf.c (print_debug_line_section): Print section offset of each
roland 6afeb4
--- elfutils/src/findtextrel.c
roland 6afeb4
+++ elfutils/src/findtextrel.c
roland 6afeb4
@@ -476,7 +476,11 @@ ptrcompare (const void *p1, const void *
roland 6afeb4
 
roland 6afeb4
 
roland 6afeb4
 static void
roland 6afeb4
-check_rel (size_t nsegments, struct segments segments[nsegments],
roland 6afeb4
+check_rel (size_t nsegments, struct segments segments[
roland 6afeb4
+#if __GNUC__ >= 4
roland 6afeb4
+						      nsegments
roland 6afeb4
+#endif
roland 6afeb4
+	   ],
roland 6afeb4
 	   GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
roland 6afeb4
 	   const char *fname, bool more_than_one, void **knownsrcs)
roland 6afeb4
 {
roland 2c9c7d
--- elfutils/src/Makefile.am
roland 2c9c7d
+++ elfutils/src/Makefile.am
roland b50442
@@ -14,6 +14,7 @@
Jakub Jelinek a769ac
 ##
Jakub Jelinek a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H $(YYDEBUG) \
Jakub Jelinek a769ac
        -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
Jakub Jelinek a769ac
+WEXTRA = @WEXTRA@
Jakub Jelinek a769ac
 if MUDFLAP
roland b50442
 AM_CFLAGS = -fmudflap
Jakub Jelinek a769ac
 else
roland b50442
@@ -21,7 +22,7 @@ AM_CFLAGS =
Jakub Jelinek a769ac
 endif
roland 06757f
 AM_CFLAGS += -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
roland 06757f
 	     $(if $($(*F)_no_Werror),,-Werror) \
roland 06757f
-	     $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
roland 06757f
+	     $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
roland 06757f
 	     $(if $($(*F)_no_Wformat),,-Wformat=2)
roland 06757f
 
roland 6d45a8
 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
roland 2c9c7d
--- elfutils/src/Makefile.in
roland 2c9c7d
+++ elfutils/src/Makefile.in
roland 3cd46a
@@ -192,6 +192,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -227,6 +228,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@ -d
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -271,12 +273,12 @@ target_alias = @target_alias@
roland 06757f
 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 \
roland 06757f
 @MUDFLAP_FALSE@	$(native_ld_cflags) $(if \
roland 06757f
 @MUDFLAP_FALSE@	$($(*F)_no_Werror),,-Werror) $(if \
roland 06757f
-@MUDFLAP_FALSE@	$($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
roland 06757f
+@MUDFLAP_FALSE@	$($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
roland 06757f
 @MUDFLAP_FALSE@	$($(*F)_no_Wformat),,-Wformat=2)
roland b50442
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -std=gnu99 \
roland b50442
 @MUDFLAP_TRUE@	$(native_ld_cflags) $(if \
roland 06757f
 @MUDFLAP_TRUE@	$($(*F)_no_Werror),,-Werror) $(if \
roland 06757f
-@MUDFLAP_TRUE@	$($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
roland 06757f
+@MUDFLAP_TRUE@	$($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
roland 06757f
 @MUDFLAP_TRUE@	$($(*F)_no_Wformat),,-Wformat=2)
roland 6d45a8
 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
roland 6d45a8
 	   -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
roland 2c9c7d
--- elfutils/src/strip.c
roland 2c9c7d
+++ elfutils/src/strip.c
roland b73b6e
@@ -40,6 +40,12 @@
roland b73b6e
 #include <libebl.h>
roland b73b6e
 #include <system.h>
roland b73b6e
 
roland b73b6e
+#ifdef HAVE_FUTIMES
roland b73b6e
+# define FUTIMES(fd, fname, tvp) futimes (fd, tvp)
roland b73b6e
+#else
roland b73b6e
+# define FUTIMES(fd, fname, tvp) utimes (fname, tvp)
roland b73b6e
+#endif
roland b73b6e
+
roland b73b6e
 
roland b73b6e
 /* Name and version of program.  */
roland b73b6e
 static void print_version (FILE *stream, struct argp_state *state);
roland 6d45a8
@@ -288,8 +294,18 @@ process_file (const char *fname)
Jakub Jelinek a769ac
 
Jakub Jelinek a769ac
       /* If we have to preserve the timestamp, we need it in the
Jakub Jelinek a769ac
 	 format utimes() understands.  */
Jakub Jelinek a769ac
+#ifdef HAVE_STRUCT_STAT_ST_ATIM
Jakub Jelinek a769ac
       TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
Jakub Jelinek a769ac
+#else
Jakub Jelinek a769ac
+      tv[0].tv_sec = pre_st.st_atime;
Jakub Jelinek a769ac
+      tv[0].tv_usec = 0;
Jakub Jelinek a769ac
+#endif
Jakub Jelinek a769ac
+#ifdef HAVE_STRUCT_STAT_ST_MTIM
Jakub Jelinek a769ac
       TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
Jakub Jelinek a769ac
+#else
Jakub Jelinek a769ac
+      tv[1].tv_sec = pre_st.st_atime;
Jakub Jelinek a769ac
+      tv[1].tv_usec = 0;
Jakub Jelinek a769ac
+#endif
Jakub Jelinek a769ac
     }
Jakub Jelinek a769ac
 
Jakub Jelinek a769ac
   /* Open the file.  */
roland 6d45a8
@@ -1679,7 +1695,7 @@ handle_elf (int fd, Elf *elf, const char
Jakub Jelinek a769ac
   /* If requested, preserve the timestamp.  */
Jakub Jelinek a769ac
   if (tvp != NULL)
Jakub Jelinek a769ac
     {
Jakub Jelinek a769ac
-      if (futimes (fd, tvp) != 0)
roland b73b6e
+      if (FUTIMES (fd, output_fname, tvp) != 0)
Jakub Jelinek a769ac
 	{
Jakub Jelinek a769ac
 	  error (0, errno, gettext ("\
roland 76905f
 cannot set access and modification date of '%s'"),
roland 6d45a8
@@ -1736,7 +1752,7 @@ handle_ar (int fd, Elf *elf, const char 
Jakub Jelinek a769ac
 
Jakub Jelinek a769ac
   if (tvp != NULL)
Jakub Jelinek a769ac
     {
Jakub Jelinek a769ac
-      if (unlikely (futimes (fd, tvp) != 0))
roland b73b6e
+      if (unlikely (FUTIMES (fd, fname, tvp) != 0))
Jakub Jelinek a769ac
 	{
Jakub Jelinek a769ac
 	  error (0, errno, gettext ("\
roland 76905f
 cannot set access and modification date of '%s'"), fname);
roland 6afeb4
--- elfutils/tests/ChangeLog
roland 6afeb4
+++ elfutils/tests/ChangeLog
roland 04c2ad
@@ -295,6 +295,11 @@
roland 6afeb4
 	* Makefile.am (TESTS): Add run-elflint-test.sh.
roland 6afeb4
 	(EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
roland 6afeb4
 
roland 6afeb4
+2005-05-31  Roland McGrath  <roland@redhat.com>
roland 6afeb4
+
roland 6afeb4
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
roland 6afeb4
+	(AM_CFLAGS): Use it in place of -Wextra.
roland 6afeb4
+
roland 6afeb4
 2005-05-24  Ulrich Drepper  <drepper@redhat.com>
roland 6afeb4
 
roland 6afeb4
 	* get-files.c (main): Use correct format specifier.
roland 6afeb4
--- elfutils/tests/Makefile.am
roland 6afeb4
+++ elfutils/tests/Makefile.am
roland b50442
@@ -13,12 +13,13 @@
roland 6afeb4
 ## 3001 King Ranch Road, Ukiah, CA 95482.
roland 6afeb4
 ##
roland 6afeb4
 DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
roland 6afeb4
+WEXTRA = @WEXTRA@
roland 6afeb4
 if MUDFLAP
roland 6afeb4
-AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
roland 6afeb4
+AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
roland 6afeb4
 	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
roland 04c2ad
 BUILD_RPATH = \$$ORIGIN/../backends
roland 6afeb4
 else
roland 6afeb4
-AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
roland 6afeb4
+AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
roland 6afeb4
 	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
roland 04c2ad
 BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
roland 6afeb4
 endif
roland 2c9c7d
--- elfutils/tests/Makefile.in
roland 2c9c7d
+++ elfutils/tests/Makefile.in
roland 3cd46a
@@ -280,6 +280,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
roland 3cd46a
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
roland 3cd46a
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
roland 3cd46a
 LDFLAGS = @LDFLAGS@
roland 3cd46a
+LD_AS_NEEDED = @LD_AS_NEEDED@
roland 3cd46a
 LEX = @LEX@
roland 3cd46a
 LEXLIB = @LEXLIB@
roland 3cd46a
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
roland 3cd46a
@@ -315,6 +316,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
roland 04c2ad
 TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
roland b73b6e
 USE_NLS = @USE_NLS@
roland b73b6e
 VERSION = @VERSION@
roland b73b6e
+WEXTRA = @WEXTRA@
roland b73b6e
 XGETTEXT = @XGETTEXT@
roland b73b6e
 YACC = @YACC@
roland b73b6e
 ac_ct_CC = @ac_ct_CC@
roland 3cd46a
@@ -356,10 +358,10 @@ sbindir = @sbindir@
roland 6afeb4
 sharedstatedir = @sharedstatedir@
roland 6afeb4
 sysconfdir = @sysconfdir@
roland 6afeb4
 target_alias = @target_alias@
roland 6afeb4
-@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
roland 6afeb4
+@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
roland 6afeb4
 @MUDFLAP_FALSE@	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
roland 6afeb4
 
roland 6afeb4
-@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
roland 6afeb4
+@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
roland 6afeb4
 @MUDFLAP_TRUE@	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
roland 6afeb4
 
roland 04c2ad
 @MUDFLAP_TRUE@BUILD_RPATH = \$$ORIGIN/../backends