[PATCH] libbfd on MS-DOS

Eli Zaretskii eliz@delorie.com
Sun Feb 27 00:49:00 GMT 2000


The following changes handle two problems with building libbfd on 8+3
(a.k.a. DOS) filesystems.  They get in the way when building with
DJGPP tools.

I found this while building the latest snapshot of GDB.

2000-02-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* aclocal.m4 (AC_SYS_NM_PARSE): Use mconftest.$objext, not
	conftestm.$objext, since the latter overwrites conftest.$objext on
	8+3 filesystems.

	* Makefile.am (objdir): New variable, computed by running
	libtool.
	(stamp-lib): Use objdir instead of a literal .libs.

--- bfd/aclocal.m~0	Sun Aug  8 18:21:52 1999
+++ bfd/aclocal.m4	Sat Feb 26 16:25:46 2000
@@ -662,10 +662,10 @@
 #endif
 EOF
 	  # Now try linking the two files.
-	  mv conftest.$ac_objext conftestm.$ac_objext
+	  mv conftest.$ac_objext mconftest.$ac_objext
 	  ac_save_LIBS="$LIBS"
 	  ac_save_CFLAGS="$CFLAGS"
-	  LIBS="conftestm.$ac_objext"
+	  LIBS="mconftest.$ac_objext"
 	  CFLAGS="$CFLAGS$no_builtin_flag"
 	  if AC_TRY_EVAL(ac_link) && test -s conftest; then
 	    ac_pipe_works=yes


--- bfd/Makefile.a~0	Mon Feb 21 07:54:20 2000
+++ bfd/Makefile.am	Sat Feb 26 20:40:24 2000
@@ -474,10 +474,11 @@
 
 noinst_LIBRARIES = libbfd.a
 libbfd_a_SOURCES =
+objdir = `$(LIBTOOL) --config | sed -n -e s,^objdir=,,p`
 
 stamp-lib: libbfd.la
-	if [ -f .libs/libbfd.a ]; then \
-	  cp .libs/libbfd.a libbfd.tmp; \
+	if [ -f $(objdir)/libbfd.a ]; then \
+	  cp $(objdir)/libbfd.a libbfd.tmp; \
 	  $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
 	else true; fi
 	touch stamp-lib


More information about the Binutils mailing list