This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: minor DJGPP config change




On Wed, 3 May 2000, Mark E. wrote:

> It didn't hit me until I was studying gcc.c that DJGPP's definition of 
> MD_EXEC_PREFIX is bad.
> 
> 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
> 
> 	* config/i386/djgpp.h (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin'.
> 

One bad thing with setting  MD_EXEC_PREFIX to DJGPP binaries directory is
that we cannot more install cpp.exe there (the one which normally goes
into $prefix/bin). 

I earlier also met problems with using environment variable $DJDIR in include
file search path as gcc tried to use relative prefix and as result $DJDIR
were not substituted in gcc/prefix.c. Using /dev/env/DJDIR/include would of
course help there but I don't like posssibility to get /dev/env/... in 
dependencies (gcc -M ...). 

Using MD_EXEC_PREFIX=/dev/env/DJDIR/bin for DJGPP only provides that user 
can have as.exe or ld.exe and similar weird things in current directory
or anywhere in path as DJGPP binaries directory is searched before DOS path
and current directory.

(But I don't have serious objections against using it in MD_EXEC_PREFIX)

Andris


> Index: gcc/gcc/config/i386/djgpp.h
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/config/i386/djgpp.h,v
> retrieving revision 1.14
> diff -c -3 -p -r1.14 djgpp.h
> *** djgpp.h	2000/05/01 16:50:49	1.14
> --- djgpp.h	2000/05/03 23:17:34
> *************** Boston, MA 02111-1307, USA.  */
> *** 77,83 ****
>   #define TEXT_SECTION_ASM_OP "\t.section .text"
>   
>   /* Search for as.exe and ld.exe in DJGPP's binary directory. */ 
> ! #define MD_EXEC_PREFIX "$DJDIR/bin/"
>   
>   /* Correctly handle absolute filename detection in cp/xref.c */
>   #define FILE_NAME_ABSOLUTE_P(NAME) \
> --- 77,83 ----
>   #define TEXT_SECTION_ASM_OP "\t.section .text"
>   
>   /* Search for as.exe and ld.exe in DJGPP's binary directory. */ 
> ! #define MD_EXEC_PREFIX "/dev/env/DJDIR/bin/"
>   
>   /* Correctly handle absolute filename detection in cp/xref.c */
>   #define FILE_NAME_ABSOLUTE_P(NAME) \
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]