This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Change default location of DJGPP's ld scripts
- To: binutils@sourceware.cygnus.com
- Subject: Change default location of DJGPP's ld scripts
- From: "Mark E." <snowball3@bigfoot.com>
- Date: Thu, 9 Sep 1999 20:29:23 -0400
Hello again,
This patch attempts to deal with another problem brought on by the 8.3 restriction
of filenames under plain DOS. The path generated for the default location of
generated scripts is unusuable in a dual SFN/LFN setup like under Win 95:
c:/djgpp/i386-pc-msdosdjgpp/lib/ldscripts/
i386-pc-msdosdjgpp would turn into something like i386-pc-~.1 in plain DOS. This
will force ld to fall back to its internal linker script.
Also, the path assumes that everyone builds their own binutils. But DJGPP users
typically use the official port rather than rolling their own. So including the
target alias in the path is somewhat redundant. Please consider this patch which
deletes the target alias from the default linker script path for DJGPP only.
*** configure.in.orig Sun Aug 8 13:06:06 1999
--- configure.in Thu Sep 9 20:04:46 1999
*************** else
*** 186,190 ****
--- 186,199 ----
fi
AC_SUBST(TESTBFDLIB)
+ dnl Including $(target_alias) in the DJGPP definition of 'tooldir'
+ dnl makes the path hostile to DOS.
+ case ${target_os} in
+ *msdosdjgpp*) tooldir="\$(exec_prefix)" ;;
+ *) tooldir="\$(exec_prefix)/\$(target_alias)" ;;
+ esac
+
+ AC_SUBST(tooldir)
+
AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
*** Makefile.in.orig Tue Sep 7 13:54:48 1999
--- Makefile.in Thu Sep 9 20:05:08 1999
*************** AUTOMAKE_OPTIONS = cygnus dejagnu
*** 108,114 ****
SUBDIRS = po
! tooldir = $(exec_prefix)/$(target_alias)
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -
L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
--- 108,114 ----
SUBDIRS = po
! tooldir = @tooldir@
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -
L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
---
Mark Elbrecht, snowball3@bigfoot.com
http://snowball.frogspace.net/