570047
--- elfutils/ChangeLog
570047
+++ elfutils/ChangeLog
f995fa
@@ -7,6 +7,17 @@
f995fa
 	* Makefile.am (all_SUBDIRS): Add libdwfl.
f995fa
 	* configure.ac: Write libdwfl/Makefile.
f995fa
 
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
678843
+
678843
+	* configure.ac (WEXTRA): Check for -Wextra and set this substitution.
678843
+
f995fa
+ 	* configure.ac: Check for struct stat st_?tim members.
f995fa
+ 	* src/strip.c (process_file): Use st_?time if st_?tim are not there.
678843
+
f995fa
+ 	* configure.ac: Check for futimes function.
f995fa
+ 	* src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.
f995fa
+ 	(handle_ar) [! HAVE_FUTIMES]: Likewise.
678843
+
f995fa
 2005-05-19  Roland McGrath  <roland@redhat.com>
678843
 
f995fa
 	* configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
570047
--- elfutils/config/Makefile.in
570047
+++ elfutils/config/Makefile.in
f995fa
@@ -107,6 +107,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
570047
--- elfutils/configure
570047
+++ elfutils/configure
f995fa
@@ -1,5 +1,5 @@
f995fa
 #! /bin/sh
469b3c
-# From configure.ac Revision: 1.50 .
469b3c
+# From configure.ac Revision: 1.47.2.5 .
f995fa
 # Guess values for system-dependent variables and create Makefiles.
469b3c
 # Generated by GNU Autoconf 2.59 for Red Hat elfutils 0.110.
f995fa
 #
469b3c
@@ -277,7 +277,7 @@ PACKAGE_STRING='Red Hat elfutils 0.110'
b73b6e
 PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
b73b6e
 
b73b6e
 ac_unique_file="libelf/libelf.h"
f995fa
-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 LIBEBL_SUBDIR USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
f995fa
+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 LOCALEDIR DATADIRNAME NATIVE_LD_TRUE NATIVE_LD_FALSE base_cpu MUDFLAP_TRUE MUDFLAP_FALSE LIBEBL_SUBDIR USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
b73b6e
 ac_subst_files=''
b73b6e
 
b73b6e
 # Initialize some variables set by options.
f995fa
@@ -3384,6 +3384,58 @@ echo "$as_me: error: gcc with C99 suppor
b73b6e
 fi
b73b6e
 
b73b6e
 
b73b6e
+echo "$as_me:$LINENO: checking for -Wextra option to $CC" >&5
b73b6e
+echo $ECHO_N "checking for -Wextra option to $CC... $ECHO_C" >&6
b73b6e
+if test "${ac_cv_cc_wextra+set}" = set; then
b73b6e
+  echo $ECHO_N "(cached) $ECHO_C" >&6
b73b6e
+else
b73b6e
+  old_CFLAGS="$CFLAGS"
b73b6e
+CFLAGS="$CFLAGS -Wextra"
b73b6e
+cat >conftest.$ac_ext <<_ACEOF
b73b6e
+void foo (void) { }
b73b6e
+_ACEOF
b73b6e
+rm -f conftest.$ac_objext
b73b6e
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
b73b6e
+  (eval $ac_compile) 2>conftest.er1
b73b6e
+  ac_status=$?
b73b6e
+  grep -v '^ *+' conftest.er1 >conftest.err
b73b6e
+  rm -f conftest.er1
b73b6e
+  cat conftest.err >&5
b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
b73b6e
+  (exit $ac_status); } &&
b73b6e
+	 { ac_try='test -z "$ac_c_werror_flag"
b73b6e
+			 || test ! -s conftest.err'
b73b6e
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b73b6e
+  (eval $ac_try) 2>&5
b73b6e
+  ac_status=$?
b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
b73b6e
+  (exit $ac_status); }; } &&
b73b6e
+	 { ac_try='test -s conftest.$ac_objext'
b73b6e
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b73b6e
+  (eval $ac_try) 2>&5
b73b6e
+  ac_status=$?
b73b6e
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
b73b6e
+  (exit $ac_status); }; }; then
b4dfab
+  ac_cv_cc_wextra=yes
b73b6e
+else
b73b6e
+  echo "$as_me: failed program was:" >&5
b73b6e
+sed 's/^/| /' conftest.$ac_ext >&5
b73b6e
+
b73b6e
+ac_cv_cc_wextra=no
b73b6e
+fi
b73b6e
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b73b6e
+CFLAGS="$old_CFLAGS"
b73b6e
+fi
b73b6e
+echo "$as_me:$LINENO: result: $ac_cv_cc_wextra" >&5
b73b6e
+echo "${ECHO_T}$ac_cv_cc_wextra" >&6
b73b6e
+
f995fa
+if test "x$ac_cv_cc_wextra" = xyes; then
b73b6e
+  WEXTRA=-Wextra
678843
+else
678843
+  WEXTRA=-W
b73b6e
+fi
b73b6e
+
b73b6e
+
b73b6e
 LOCALEDIR=$datadir
b73b6e
 
b73b6e
 cat >>confdefs.h <<_ACEOF
f995fa
@@ -4847,6 +4899,7 @@ s,@YACC@,$YACC,;t t
b73b6e
 s,@LEX@,$LEX,;t t
b73b6e
 s,@LEXLIB@,$LEXLIB,;t t
b73b6e
 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
b73b6e
+s,@WEXTRA@,$WEXTRA,;t t
b73b6e
 s,@LOCALEDIR@,$LOCALEDIR,;t t
b73b6e
 s,@DATADIRNAME@,$DATADIRNAME,;t t
b73b6e
 s,@NATIVE_LD_TRUE@,$NATIVE_LD_TRUE,;t t
570047
--- elfutils/configure.ac
570047
+++ elfutils/configure.ac
f995fa
@@ -23,7 +23,7 @@ AC_CONFIG_AUX_DIR([config])
f995fa
 AC_CONFIG_FILES([config/Makefile])
f995fa
 
f995fa
 AC_COPYRIGHT([Copyright (C) 1996-2003, 2004, 2005 Red Hat, Inc.])
469b3c
-AC_REVISION($Revision: 1.9 $)
469b3c
+AC_REVISION($Revision: 1.9 $)
f995fa
 AC_PREREQ(2.59)			dnl Minimum Autoconf version required.
f995fa
 
f995fa
 AM_INIT_AUTOMAKE([gnits 1.7])
f995fa
@@ -70,6 +70,15 @@ CFLAGS="$old_CFLAGS"])
a769ac
 AS_IF([test "x$ac_cv_c99" != xyes],
a769ac
       AC_MSG_ERROR([gcc with C99 support required]))
a769ac
 
a769ac
+AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl
a769ac
+old_CFLAGS="$CFLAGS"
a769ac
+CFLAGS="$CFLAGS -Wextra"
a769ac
+AC_COMPILE_IFELSE([void foo (void) { }],
b4dfab
+		  ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
a769ac
+CFLAGS="$old_CFLAGS"])
a769ac
+AC_SUBST(WEXTRA)
f995fa
+AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W])
a769ac
+
a769ac
 LOCALEDIR=$datadir
a769ac
 AC_SUBST(LOCALEDIR)
a769ac
 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
570047
--- elfutils/lib/ChangeLog
570047
+++ elfutils/lib/ChangeLog
5fa386
@@ -4,6 +4,11 @@
5fa386
 	* Makefile.am (libeu_a_SOURCES): Add it.
5fa386
 	* system.h: Declare crc32_file.
5fa386
 
a769ac
+2005-02-07  Roland McGrath  <roland@redhat.com>
a769ac
+
a769ac
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
a769ac
+	(AM_CFLAGS): Use it in place of -Wextra.
a769ac
+
5fa386
 2005-04-30  Ulrich Drepper  <drepper@redhat.com>
a769ac
 
5fa386
 	* Makefile.am: Use -ffunction-sections for xmalloc.c.
570047
--- elfutils/lib/Makefile.am
570047
+++ elfutils/lib/Makefile.am
b73b6e
@@ -16,12 +16,13 @@
a769ac
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
a769ac
 ##
a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
 AM_CFLAGS = -fmudflap
a769ac
 else
a769ac
 AM_CFLAGS =
a769ac
 endif
a769ac
-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
a769ac
+AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) $($(*F)_CFLAGS)
a769ac
 INCLUDES = -I$(srcdir)/../libelf -I..
a769ac
 
a769ac
 noinst_LIBRARIES = libeu.a
570047
--- elfutils/lib/Makefile.in
570047
+++ elfutils/lib/Makefile.in
f995fa
@@ -129,6 +129,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -171,9 +172,9 @@ sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
b73b6e
-@MUDFLAP_FALSE@	-Wextra $($(*F)_CFLAGS)
b73b6e
+@MUDFLAP_FALSE@	$(WEXTRA) $($(*F)_CFLAGS)
b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
b73b6e
-@MUDFLAP_TRUE@	-Wunused -Wextra $($(*F)_CFLAGS)
b73b6e
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) $($(*F)_CFLAGS)
b73b6e
 INCLUDES = -I$(srcdir)/../libelf -I..
b73b6e
 noinst_LIBRARIES = libeu.a
5fa386
 libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
f995fa
--- elfutils/libasm/ChangeLog
f995fa
+++ elfutils/libasm/ChangeLog
f995fa
@@ -1,3 +1,8 @@
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
f995fa
 
f995fa
 	* Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
570047
--- elfutils/libasm/Makefile.am
570047
+++ elfutils/libasm/Makefile.am
b73b6e
@@ -13,12 +13,13 @@
a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
a769ac
 ##
a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
 AM_CFLAGS = -fmudflap
a769ac
 else
a769ac
 AM_CFLAGS =
a769ac
 endif
a769ac
-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
a769ac
+AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2
a769ac
 INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
a769ac
 	   -I$(top_srcdir)/lib
a769ac
 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
570047
--- elfutils/libasm/Makefile.in
570047
+++ elfutils/libasm/Makefile.in
f995fa
@@ -161,6 +161,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = 1
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -202,10 +203,10 @@ sbindir = @sbindir@
b73b6e
 sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
-@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -Werror -Wunused -Wextra \
b73b6e
+@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -Werror -Wunused $(WEXTRA) \
b73b6e
 @MUDFLAP_FALSE@	-Wformat=2
b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -Werror -Wunused \
b73b6e
-@MUDFLAP_TRUE@	-Wextra -Wformat=2
b73b6e
+@MUDFLAP_TRUE@	$(WEXTRA) -Wformat=2
b73b6e
 INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
b73b6e
 	   -I$(top_srcdir)/lib
b73b6e
 
570047
--- elfutils/libcpu/ChangeLog
570047
+++ elfutils/libcpu/ChangeLog
678843
@@ -1,3 +1,8 @@
678843
+2005-04-04  Roland McGrath  <roland@redhat.com>
678843
+
678843
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
678843
+	(AM_CFLAGS): Use it instead of -Wextra.
678843
+
678843
 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
678843
 
678843
 	* Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
570047
--- elfutils/libcpu/Makefile.am
570047
+++ elfutils/libcpu/Makefile.am
c881c2
@@ -13,7 +13,8 @@
c881c2
 ## 3001 King Ranch Road, Ukiah, CA 95482.
c881c2
 ##
c881c2
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
c881c2
-AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
c881c2
+WEXTRA = @WEXTRA@
c881c2
+AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
c881c2
 INCLUDES = -I$(srcdir)
c881c2
 
c881c2
 noinst_LIBRARIES = libcpu_i386.a
570047
--- elfutils/libcpu/Makefile.in
570047
+++ elfutils/libcpu/Makefile.in
f995fa
@@ -124,6 +124,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -165,7 +166,7 @@ sbindir = @sbindir@
b73b6e
 sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
-AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
b73b6e
+AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
b73b6e
 INCLUDES = -I$(srcdir)
b73b6e
 noinst_LIBRARIES = libcpu_i386.a
b73b6e
 libcpu_i386_a_SOURCES = i386_dis.c
f995fa
--- elfutils/libdw/ChangeLog
f995fa
+++ elfutils/libdw/ChangeLog
469b3c
@@ -44,6 +44,11 @@
f995fa
 
f995fa
 2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
 
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
 	* dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
f995fa
 	formref offset.
f995fa
 
570047
--- elfutils/libdw/Makefile.am
570047
+++ elfutils/libdw/Makefile.am
b73b6e
@@ -13,12 +13,13 @@
a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
a769ac
 ##
f995fa
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DIS_LIBDW
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
 AM_CFLAGS = -fmudflap
a769ac
 else
a769ac
 AM_CFLAGS =
a769ac
 endif
a769ac
-AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
a769ac
+AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
a769ac
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
a769ac
 VERSION = 1
a769ac
 
570047
--- elfutils/libdw/Makefile.in
570047
+++ elfutils/libdw/Makefile.in
f995fa
@@ -196,6 +196,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = 1
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -238,9 +239,9 @@ sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
b73b6e
-@MUDFLAP_FALSE@	-Wextra -std=gnu99
b73b6e
+@MUDFLAP_FALSE@	$(WEXTRA) -std=gnu99
b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
b73b6e
-@MUDFLAP_TRUE@	-Wformat=2 -Wextra -std=gnu99
b73b6e
+@MUDFLAP_TRUE@	-Wformat=2 $(WEXTRA) -std=gnu99
b73b6e
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
b73b6e
 lib_LIBRARIES = libdw.a
b73b6e
 @MUDFLAP_FALSE@noinst_LIBRARIES = libdw_pic.a
f995fa
--- elfutils/libdwfl/ChangeLog
f995fa
+++ elfutils/libdwfl/ChangeLog
469b3c
@@ -4,6 +4,11 @@
469b3c
 
f995fa
 2005-07-21  Roland McGrath  <roland@redhat.com>
f995fa
 
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
+2005-07-21  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
 	* Makefile.am (noinst_HEADERS): Add loc2c.c.
f995fa
 
f995fa
 	* test2.c (main): Check sscanf result to quiet warning.
f995fa
--- elfutils/libdwfl/Makefile.am
f995fa
+++ elfutils/libdwfl/Makefile.am
f995fa
@@ -15,12 +15,13 @@
f995fa
 ## 3001 King Ranch Road, Ukiah, CA 95482.
f995fa
 ##
f995fa
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
f995fa
+WEXTRA = @WEXTRA@
f995fa
 if MUDFLAP
f995fa
 AM_CFLAGS = -fmudflap
f995fa
 else
f995fa
 AM_CFLAGS =
f995fa
 endif
f995fa
-AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
f995fa
+AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
f995fa
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
f995fa
 	   -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
f995fa
 VERSION = 1
f995fa
--- elfutils/libdwfl/Makefile.in
f995fa
+++ elfutils/libdwfl/Makefile.in
469b3c
@@ -184,6 +184,7 @@ SHELL = @SHELL@
f995fa
 STRIP = @STRIP@
f995fa
 USE_NLS = @USE_NLS@
f995fa
 VERSION = 1
f995fa
+WEXTRA = @WEXTRA@
f995fa
 XGETTEXT = @XGETTEXT@
f995fa
 YACC = @YACC@
f995fa
 ac_ct_CC = @ac_ct_CC@
469b3c
@@ -226,9 +227,9 @@ sharedstatedir = @sharedstatedir@
f995fa
 sysconfdir = @sysconfdir@
f995fa
 target_alias = @target_alias@
f995fa
 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
f995fa
-@MUDFLAP_FALSE@	-Wextra -std=gnu99
f995fa
+@MUDFLAP_FALSE@	$(WEXTRA) -std=gnu99
f995fa
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
f995fa
-@MUDFLAP_TRUE@	-Wformat=2 -Wextra -std=gnu99
f995fa
+@MUDFLAP_TRUE@	-Wformat=2 $(WEXTRA) -std=gnu99
f995fa
 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
f995fa
 	   -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
f995fa
 
f995fa
--- elfutils/libebl/ChangeLog
f995fa
+++ elfutils/libebl/ChangeLog
469b3c
@@ -58,6 +58,11 @@
f995fa
 	* Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
f995fa
 	tracking works right.
f995fa
 
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
 2005-05-21  Ulrich Drepper  <drepper@redhat.com>
f995fa
 
f995fa
 	* libebl_x86_64.map: Add x86_64_core_note.
570047
--- elfutils/libebl/Makefile.am
570047
+++ elfutils/libebl/Makefile.am
b73b6e
@@ -13,12 +13,13 @@
a769ac
 ## 3001 King Ranch Road, Ukiah, CA 95482.
a769ac
 ##
a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
 AM_CFLAGS = -fmudflap
a769ac
 else
a769ac
 AM_CFLAGS =
a769ac
 endif
a769ac
-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
a769ac
+AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
a769ac
 	     -std=gnu99
a769ac
 
a769ac
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/lib -I..
570047
--- elfutils/libebl/Makefile.in
570047
+++ elfutils/libebl/Makefile.in
f995fa
@@ -249,6 +249,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = 1
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -291,9 +292,9 @@ sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
b73b6e
-@MUDFLAP_FALSE@	-Wextra -Wformat=2 -std=gnu99
b73b6e
+@MUDFLAP_FALSE@	$(WEXTRA) -Wformat=2 -std=gnu99
b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
b73b6e
-@MUDFLAP_TRUE@	-Wunused -Wextra -Wformat=2 -std=gnu99
b73b6e
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) -Wformat=2 -std=gnu99
b73b6e
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/lib -I..
b73b6e
 lib_LIBRARIES = libebl.a
f995fa
 modules = i386 sh x86_64 ia64 alpha arm sparc ppc ppc64
f995fa
--- elfutils/libelf/ChangeLog
f995fa
+++ elfutils/libelf/ChangeLog
469b3c
@@ -18,6 +18,11 @@
469b3c
 	If section content hasn't been read yet, do it before looking for the
469b3c
 	block size.  If no section data present, infer size of section header.
469b3c
 
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
f995fa
 
f995fa
 	* elf.h: Update again.
f995fa
--- elfutils/libelf/common.h
f995fa
+++ elfutils/libelf/common.h
f995fa
@@ -122,7 +122,7 @@ libelf_release_all (Elf *elf)
f995fa
   (Var) = (sizeof (Var) == 1						      \
f995fa
 	   ? (unsigned char) (Var)					      \
f995fa
 	   : (sizeof (Var) == 2						      \
f995fa
-	      ? bswap_16 (Var)						      \
f995fa
+	      ? (unsigned short int) bswap_16 (Var)			      \
f995fa
 	      : (sizeof (Var) == 4					      \
f995fa
 		 ? bswap_32 (Var)					      \
f995fa
 		 : bswap_64 (Var))))
f995fa
@@ -131,7 +131,7 @@ libelf_release_all (Elf *elf)
f995fa
   (Dst) = (sizeof (Var) == 1						      \
f995fa
 	   ? (unsigned char) (Var)					      \
f995fa
 	   : (sizeof (Var) == 2						      \
f995fa
-	      ? bswap_16 (Var)						      \
f995fa
+	      ? (unsigned short int) bswap_16 (Var)			      \
f995fa
 	      : (sizeof (Var) == 4					      \
f995fa
 		 ? bswap_32 (Var)					      \
f995fa
 		 : bswap_64 (Var))))
570047
--- elfutils/libelf/Makefile.am
570047
+++ elfutils/libelf/Makefile.am
b73b6e
@@ -16,12 +16,13 @@
a769ac
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
a769ac
 ##
a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
 AM_CFLAGS = -fpic -fmudflap
a769ac
 else
a769ac
 AM_CFLAGS =
a769ac
 endif
a769ac
-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
a769ac
+AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
a769ac
 	     $($(*F)_CFLAGS)
a769ac
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
a769ac
 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
570047
--- elfutils/libelf/Makefile.in
570047
+++ elfutils/libelf/Makefile.in
f995fa
@@ -201,6 +201,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = 1
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -242,10 +243,10 @@ sbindir = @sbindir@
b73b6e
 sharedstatedir = @sharedstatedir@
b73b6e
 sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
-@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -Werror -Wunused -Wextra \
b73b6e
+@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -Werror -Wunused $(WEXTRA) \
b73b6e
 @MUDFLAP_FALSE@	-Wformat=2 -std=gnu99 $($(*F)_CFLAGS)
b73b6e
 @MUDFLAP_TRUE@AM_CFLAGS = -fpic -fmudflap -Wall -Wshadow -Werror \
b73b6e
-@MUDFLAP_TRUE@	-Wunused -Wextra -Wformat=2 -std=gnu99 \
b73b6e
+@MUDFLAP_TRUE@	-Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
b73b6e
 @MUDFLAP_TRUE@	$($(*F)_CFLAGS)
b73b6e
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
b73b6e
 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
570047
--- elfutils/m4/Makefile.in
570047
+++ elfutils/m4/Makefile.in
f995fa
@@ -105,6 +105,7 @@ SHELL = @SHELL@
f995fa
 STRIP = @STRIP@
f995fa
 USE_NLS = @USE_NLS@
f995fa
 VERSION = @VERSION@
f995fa
+WEXTRA = @WEXTRA@
f995fa
 XGETTEXT = @XGETTEXT@
f995fa
 YACC = @YACC@
f995fa
 ac_ct_CC = @ac_ct_CC@
f995fa
--- elfutils/Makefile.in
f995fa
+++ elfutils/Makefile.in
f995fa
@@ -129,6 +129,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
--- elfutils/src/ChangeLog
f995fa
+++ elfutils/src/ChangeLog
469b3c
@@ -44,6 +44,11 @@
f995fa
 	* readelf.c (print_debug_loc_section): Fix indentation for larger
f995fa
 	address size.
f995fa
 
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
 2005-05-30  Roland McGrath  <roland@redhat.com>
f995fa
 
f995fa
 	* readelf.c (print_debug_line_section): Print section offset of each
f995fa
--- elfutils/src/findtextrel.c
f995fa
+++ elfutils/src/findtextrel.c
f995fa
@@ -476,7 +476,11 @@ ptrcompare (const void *p1, const void *
f995fa
 
f995fa
 
f995fa
 static void
f995fa
-check_rel (size_t nsegments, struct segments segments[nsegments],
f995fa
+check_rel (size_t nsegments, struct segments segments[
f995fa
+#if __GNUC__ >= 4
f995fa
+						      nsegments
f995fa
+#endif
f995fa
+	   ],
f995fa
 	   GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
f995fa
 	   const char *fname, bool more_than_one, void **knownsrcs)
f995fa
 {
570047
--- elfutils/src/Makefile.am
570047
+++ elfutils/src/Makefile.am
b73b6e
@@ -14,14 +14,15 @@
a769ac
 ##
a769ac
 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H $(YYDEBUG) \
a769ac
        -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
a769ac
+WEXTRA = @WEXTRA@
a769ac
 if MUDFLAP
a769ac
-AM_CFLAGS = -Wall -Wshadow -Wunused -Wextra -std=gnu99 -fmudflap \
a769ac
+AM_CFLAGS = -Wall -Wshadow -Wunused $(WEXTRA) -std=gnu99 -fmudflap \
a769ac
 	    $(native_ld_cflags) $(if $($(*F)_no_Wunused),,-Wunused) \
a769ac
 	    $(if $($(*F)_no_Wformat),,-Wformat=2)
a769ac
 else
a769ac
 AM_CFLAGS = -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
a769ac
 	    $(if $($(*F)_no_Werror),,-Werror) \
a769ac
-	    $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
a769ac
+	    $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
a769ac
 	    $(if $($(*F)_no_Wformat),,-Wformat=2)
a769ac
 endif
a769ac
 if MUDFLAP
570047
--- elfutils/src/Makefile.in
570047
+++ elfutils/src/Makefile.in
f995fa
@@ -200,6 +200,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@ -d
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -243,10 +244,10 @@ sysconfdir = @sysconfdir@
b73b6e
 target_alias = @target_alias@
b73b6e
 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
b73b6e
 @MUDFLAP_FALSE@	    $(if $($(*F)_no_Werror),,-Werror) \
b73b6e
-@MUDFLAP_FALSE@	    $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
b73b6e
+@MUDFLAP_FALSE@	    $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
b73b6e
 @MUDFLAP_FALSE@	    $(if $($(*F)_no_Wformat),,-Wformat=2)
b73b6e
 
b73b6e
-@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Wshadow -Wunused -Wextra -std=gnu99 -fmudflap \
b73b6e
+@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Wshadow -Wunused $(WEXTRA) -std=gnu99 -fmudflap \
b73b6e
 @MUDFLAP_TRUE@	    $(native_ld_cflags) $(if $($(*F)_no_Wunused),,-Wunused) \
b73b6e
 @MUDFLAP_TRUE@	    $(if $($(*F)_no_Wformat),,-Wformat=2)
b73b6e
 
570047
--- elfutils/src/strip.c
570047
+++ elfutils/src/strip.c
b73b6e
@@ -40,6 +40,12 @@
b73b6e
 #include <libebl.h>
b73b6e
 #include <system.h>
b73b6e
 
b73b6e
+#ifdef HAVE_FUTIMES
b73b6e
+# define FUTIMES(fd, fname, tvp) futimes (fd, tvp)
b73b6e
+#else
b73b6e
+# define FUTIMES(fd, fname, tvp) utimes (fname, tvp)
b73b6e
+#endif
b73b6e
+
b73b6e
 
b73b6e
 /* Name and version of program.  */
b73b6e
 static void print_version (FILE *stream, struct argp_state *state);
5fa386
@@ -269,8 +275,18 @@ process_file (const char *fname)
a769ac
 
a769ac
       /* If we have to preserve the timestamp, we need it in the
a769ac
 	 format utimes() understands.  */
a769ac
+#ifdef HAVE_STRUCT_STAT_ST_ATIM
a769ac
       TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
a769ac
+#else
a769ac
+      tv[0].tv_sec = pre_st.st_atime;
a769ac
+      tv[0].tv_usec = 0;
a769ac
+#endif
a769ac
+#ifdef HAVE_STRUCT_STAT_ST_MTIM
a769ac
       TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
a769ac
+#else
a769ac
+      tv[1].tv_sec = pre_st.st_atime;
a769ac
+      tv[1].tv_usec = 0;
a769ac
+#endif
a769ac
     }
a769ac
 
a769ac
   /* Open the file.  */
469b3c
@@ -1678,7 +1694,7 @@ handle_elf (int fd, Elf *elf, const char
a769ac
   /* If requested, preserve the timestamp.  */
a769ac
   if (tvp != NULL)
a769ac
     {
a769ac
-      if (futimes (fd, tvp) != 0)
b73b6e
+      if (FUTIMES (fd, output_fname, tvp) != 0)
a769ac
 	{
a769ac
 	  error (0, errno, gettext ("\
5fa386
 cannot set access and modification date of '%s'"),
469b3c
@@ -1735,7 +1751,7 @@ handle_ar (int fd, Elf *elf, const char 
a769ac
 
a769ac
   if (tvp != NULL)
a769ac
     {
a769ac
-      if (unlikely (futimes (fd, tvp) != 0))
b73b6e
+      if (unlikely (FUTIMES (fd, fname, tvp) != 0))
a769ac
 	{
a769ac
 	  error (0, errno, gettext ("\
5fa386
 cannot set access and modification date of '%s'"), fname);
f995fa
--- elfutils/tests/ChangeLog
f995fa
+++ elfutils/tests/ChangeLog
f995fa
@@ -5,6 +5,11 @@
f995fa
 	* Makefile.am (TESTS): Add run-elflint-test.sh.
f995fa
 	(EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
f995fa
 
f995fa
+2005-05-31  Roland McGrath  <roland@redhat.com>
f995fa
+
f995fa
+	* Makefile.am (WEXTRA): New variable, substituted by configure.
f995fa
+	(AM_CFLAGS): Use it in place of -Wextra.
f995fa
+
f995fa
 2005-05-24  Ulrich Drepper  <drepper@redhat.com>
f995fa
 
f995fa
 	* get-files.c (main): Use correct format specifier.
f995fa
--- elfutils/tests/Makefile.am
f995fa
+++ elfutils/tests/Makefile.am
f995fa
@@ -13,11 +13,12 @@
f995fa
 ## 3001 King Ranch Road, Ukiah, CA 95482.
f995fa
 ##
f995fa
 DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
f995fa
+WEXTRA = @WEXTRA@
f995fa
 if MUDFLAP
f995fa
-AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
f995fa
+AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
f995fa
 	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
f995fa
 else
f995fa
-AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
f995fa
+AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
f995fa
 	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
f995fa
 AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf
f995fa
 endif
570047
--- elfutils/tests/Makefile.in
570047
+++ elfutils/tests/Makefile.in
f995fa
@@ -268,6 +268,7 @@ SHELL = @SHELL@
b73b6e
 STRIP = @STRIP@
b73b6e
 USE_NLS = @USE_NLS@
b73b6e
 VERSION = @VERSION@
b73b6e
+WEXTRA = @WEXTRA@
b73b6e
 XGETTEXT = @XGETTEXT@
b73b6e
 YACC = @YACC@
b73b6e
 ac_ct_CC = @ac_ct_CC@
f995fa
@@ -309,10 +310,10 @@ sbindir = @sbindir@
f995fa
 sharedstatedir = @sharedstatedir@
f995fa
 sysconfdir = @sysconfdir@
f995fa
 target_alias = @target_alias@
f995fa
-@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
f995fa
+@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
f995fa
 @MUDFLAP_FALSE@	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
f995fa
 
f995fa
-@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
f995fa
+@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
f995fa
 @MUDFLAP_TRUE@	    $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
f995fa
 
f995fa
 @MUDFLAP_FALSE@AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf