gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Couple of Mac OS X Fixes


From: Michael Lambert
Subject: [Gm2] Couple of Mac OS X Fixes
Date: Tue, 23 Jun 2009 23:10:21 -0400

These patches should fix a couple of problems on Mac OS X (at least on Intel).

The first is for the debugging format. My original patch worked under tcsh, but not under bash. I haven't tested it on other platforms, but I think it's rather unlikely it will cause problems.

==========
--- gm2/Make-lang.in.sav        2009-06-22 21:35:28.000000000 -0400
+++ gm2/Make-lang.in    2009-06-23 22:09:42.000000000 -0400
@@ -52,11 +52,9 @@
 XGM2_1 = ./xgm2
 XGM2BUILD1 = ./stage1/gm2  -g -gdwarf-2

-ifeq ($(OSTYPE),darwin)
-  ifeq ($(VENDOR),apple)
-    ifeq ($(MACHTYPE),i386)
-       XGM2BUILD1 = ./stage1/gm2 -g
-    endif
+ifeq ($(shell uname -s),Darwin)
+  ifeq ($(shell uname -m),i386)
+    XGM2BUILD1 = ./stage1/gm2 -g
   endif
 endif
==========

The second is for the strip-underscores problem.

==========
--- gcc-4.1.2/libstdc++-v3/scripts/make_exports.pl.sav 2006-04-26 15:59:05.000000000 -0400 +++ gcc-4.1.2/libstdc++-v3/scripts/make_exports.pl 2009-06-23 18:13:00.000000000 -0400
@@ -92,7 +92,11 @@
 print STDERR $nm.' -P '.(join ' ',@ARGV).'|';
 open NM,$nm.' -P '.(join ' ',@ARGV).'|' or die $!;
 # Talk to c++filt through a pair of file descriptors.
-open2(*FILTIN, *FILTOUT, "c++filt --strip-underscores") or die $!;
+if ($^O eq "darwin") {       
+    open2(*FILTIN, *FILTOUT, "c++filt --strip-underscore") or die $!;
+} else {
+    open2(*FILTIN, *FILTOUT, "c++filt --strip-underscores") or die $!;
+}
 NAME: while (<NM>) {
     my $i;
     chomp;
==========

Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]