PATCH: DJGPP update

Laurynas Biveinis lauras@softhome.net
Wed Jan 31 03:53:00 GMT 2001


This patch sets paths to DJGPP startup files correctly.

Comments/commits?

2001-01-31  Laurynas Biveinis  <lauras@softhome.net>

	* config/i386/djgpp.h: add comments about standard paths.
	(MD_EXEC_PREFIX): undefine before defining.
	(MD_STARTFILE_PREFIX): new.

Index: djgpp.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/djgpp.h,v
retrieving revision 1.21
diff -u -u -r1.21 djgpp.h
--- djgpp.h	2001/01/03 04:04:56	1.21
+++ djgpp.h	2001/01/31 11:42:13
@@ -90,13 +90,22 @@
 #undef UNALIGNED_SHORT_ASM_OP
 #define UNALIGNED_SHORT_ASM_OP "\t.short\t"
 
-/* Tell GCC where our standard include directory is.  */
+/* Define standard DJGPP installation paths.                             */
+/* We override default /usr or /usr/local part with /dev/env/DJDIR which */
+/* points to actual DJGPP instalation directory.                         */
+
+/* Standard include directory */
 #undef STANDARD_INCLUDE_DIR
 #define STANDARD_INCLUDE_DIR "/dev/env/DJDIR/include/"
 
 /* Search for as.exe and ld.exe in DJGPP's binary directory. */ 
+#undef MD_EXEC_PREFIX
 #define MD_EXEC_PREFIX "/dev/env/DJDIR/bin/"
 
+/* Standard DJGPP library and startup files */
+#undef MD_STARTFILE_PREFIX
+#define MD_STARTFILE_PREFIX "/dev/env/DJDIR/lib/"
+
 /* Correctly handle absolute filename detection in cp/xref.c */
 #define FILE_NAME_ABSOLUTE_P(NAME) \
         (((NAME)[0] == '/') || ((NAME)[0] == '\\') || \


More information about the Gcc-patches mailing list