components/stdcxx/isa_patches/sparcv9/1038-GNUmakefile.ph.sparcv9.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Thu, 14 Jul 2011 11:26:11 -0700
changeset 402 94ae4d75524c
permissions -rw-r--r--
7064836 stdcxx to Userland

--- stdcxx-4.2.1/etc/config/GNUmakefile.ph	2008-04-24 20:25:50.000000000 -0400
+++ stdcxx-4.2.1/etc/config/GNUmakefile.ph	2009-03-30 11:15:50.711606000 -0400
@@ -24,8 +24,17 @@
 #
 ########################################################################
 
-include ../makefile.in
+arch := $(shell mach)
+
+ifeq ($(arch),sparc)
+      XREGS := -xregs=appl
+      XMEMALIGN := -xmemalign=16i
+else
+      XREGS := -xregs=no%frameptr
+      XMEMALIGN :=
+endif
 
+include ../makefile.in
 
 ########################################################################
 #  if PHDIR isn't set, don't try to build anything