--- gcc/config/mips-bsd.h 2018/04/24 17:54:27 1.1.1.2 +++ gcc/config/mips-bsd.h 2018/04/24 18:05:06 1.1.1.4 @@ -19,7 +19,8 @@ the Free Software Foundation, 675 Mass A #define MIPS_BSD43 -#define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43" +#define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43 \ +-D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_BSD43" #define SYSTEM_INCLUDE_DIR "/bsd43/usr/include" @@ -36,7 +37,7 @@ the Free Software Foundation, 675 Mass A %{!mgas: \ %{EB} %{!EB: -EB} \ %{EL: %e-EL not supported} \ - %{bestGnum} \ + %{bestGnum} %{shared} %{non_shared} \ %{mips1} %{mips2} %{mips3} \ -systype /bsd43/ }" @@ -49,4 +50,8 @@ the Free Software Foundation, 675 Mass A /* Generate calls to memcpy, etc., not bcopy, etc. */ #define TARGET_MEM_FUNCTIONS +/* Override defaults for finding the MIPS tools. */ +#define MD_STARTFILE_PREFIX "/bsd43/usr/lib/cmplrs/cc/" +#define MD_EXEC_PREFIX "/bsd43/usr/lib/cmplrs/cc/" + #include "mips.h"