public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Change default location of DJGPP's ld scripts
@ 1999-09-09 17:31 Mark E.
  1999-09-09 19:12 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Mark E. @ 1999-09-09 17:31 UTC (permalink / raw)
  To: binutils

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-09-10  1:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-09 17:31 Change default location of DJGPP's ld scripts Mark E.
1999-09-09 19:12 ` Ian Lance Taylor
1999-09-09 19:48   ` Mark E.
1999-09-10  1:21     ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).