public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Mark E." <snowball3@bigfoot.com>
To: binutils@sourceware.cygnus.com
Subject: Change default location of DJGPP's ld scripts
Date: Thu, 09 Sep 1999 17:31:00 -0000	[thread overview]
Message-ID: <199909100029.AAA17468@out4.ibm.net> (raw)

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/

             reply	other threads:[~1999-09-09 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 17:31 Mark E. [this message]
1999-09-09 19:12 ` Ian Lance Taylor
1999-09-09 19:48   ` Mark E.
1999-09-10  1:21     ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909100029.AAA17468@out4.ibm.net \
    --to=snowball3@bigfoot.com \
    --cc=binutils@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).