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]

Darwin tweaks


Two simple changes that make GCC play better with the rest of a
Darwin or Mac OS X system, committed to mainline only.

Stan

2001-04-28  Stan Shebs  <shebs@apple.com>

        * config/darwin.h (STANDARD_EXEC_PREFIX): Don't define.
        (NEXT_OBJC_RUNTIME): Define.

Index: config/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 darwin.h
*** darwin.h    2001/04/12 02:12:59     1.1
--- darwin.h    2001/04/28 22:14:47
*************** Boston, MA 02111-1307, USA.  */
*** 30,40 ****
  /* Although NeXT ran on many different architectures, as of Jan 2001
     the only supported Darwin targets are PowerPC and x86.  */
  
! /* Make the compiler look here for standard stuff.  */
  
- #undef STANDARD_EXEC_PREFIX
- #define STANDARD_EXEC_PREFIX "/usr/libexec/"
- 
  /* Name of the command that invokes the compiler - used in g++.c.  */
  
  #undef  GCC_NAME
--- 30,40 ----
  /* Although NeXT ran on many different architectures, as of Jan 2001
     the only supported Darwin targets are PowerPC and x86.  */
  
! /* Technically, STANDARD_EXEC_PREFIX should be /usr/libexec/, but in
!    practice this makes it hard to install new compilers elsewhere, so
!    leave it undefined and expect system builders to set configure args
!    correctly.  */
  
  /* Name of the command that invokes the compiler - used in g++.c.  */
  
  #undef  GCC_NAME
*************** Boston, MA 02111-1307, USA.  */
*** 69,74 ****
--- 69,79 ----
  #define WCHAR_TYPE "int"
  #undef        WCHAR_TYPE_SIZE
  #define WCHAR_TYPE_SIZE 32
+ 
+ /* Default to using the NeXT-style runtime, since that's what is
+    pre-installed on Darwin systems.  */
+ 
+ #define NEXT_OBJC_RUNTIME
  
  /* Don't default to pcc-struct-return, because gcc is the only compiler, and
     we want to retain compatibility with older gcc versions.  */


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