[GRASS-SVN] r37409 - in grass/trunk: gui/wxpython/nviz gui/wxpython/vdigit include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 23 15:33:16 EDT 2009


Author: kyngchaos
Date: 2009-05-23 15:33:16 -0400 (Sat, 23 May 2009)
New Revision: 37409

Modified:
   grass/trunk/gui/wxpython/nviz/Makefile
   grass/trunk/gui/wxpython/vdigit/Makefile
   grass/trunk/include/Make/Platform.make.in
Log:
support 64bit build with 32bit wxpython on OSX (from dev6 r37407)

Modified: grass/trunk/gui/wxpython/nviz/Makefile
===================================================================
--- grass/trunk/gui/wxpython/nviz/Makefile	2009-05-23 19:30:11 UTC (rev 37408)
+++ grass/trunk/gui/wxpython/nviz/Makefile	2009-05-23 19:33:16 UTC (rev 37409)
@@ -2,6 +2,13 @@
 
 include $(MODULE_TOPDIR)/include/Make/Lib.make
 
+ifeq ($(findstring darwin,$(ARCH)),darwin)
+ifneq ($(WX_ISOSX64BIT),1)
+CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
+LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
+endif
+endif
+
 LIB_NAME = grass7_wxnviz
 
 SHLIB = $(OBJDIR)/_$(LIB_NAME).so

Modified: grass/trunk/gui/wxpython/vdigit/Makefile
===================================================================
--- grass/trunk/gui/wxpython/vdigit/Makefile	2009-05-23 19:30:11 UTC (rev 37408)
+++ grass/trunk/gui/wxpython/vdigit/Makefile	2009-05-23 19:33:16 UTC (rev 37409)
@@ -2,6 +2,13 @@
 
 include $(MODULE_TOPDIR)/include/Make/Lib.make
 
+ifeq ($(findstring darwin,$(ARCH)),darwin)
+ifneq ($(WX_ISOSX64BIT),1)
+CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
+LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
+endif
+endif
+
 LIB_NAME = grass7_wxvdigit
 
 SHLIB = $(OBJDIR)/_$(LIB_NAME).so

Modified: grass/trunk/include/Make/Platform.make.in
===================================================================
--- grass/trunk/include/Make/Platform.make.in	2009-05-23 19:30:11 UTC (rev 37408)
+++ grass/trunk/include/Make/Platform.make.in	2009-05-23 19:33:16 UTC (rev 37409)
@@ -231,6 +231,8 @@
 WXWIDGETSCPPFLAGS   = @WXWIDGETSCPPFLAGS@
 WXWIDGETSLIB        = @WXWIDGETSLIB@
 USE_WXWIDGETS       = @USE_WXWIDGETS@
+# set from configure when 64bit wxWidgets becomes possible on OSX
+WX_ISOSX64BIT       = 
 
 #regex
 REGEXINCPATH        = @REGEXINCPATH@



More information about the grass-commit mailing list