This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] libbfd on MS-DOS
- To: binutils at sourceware dot cygnus dot com
- Subject: [PATCH] libbfd on MS-DOS
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Sun, 27 Feb 2000 03:49:35 -0500 (EST)
- CC: gdb-patches at sourceware dot cygnus dot com
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