[GRASS-SVN] r37407 - in grass/branches/develbranch_6: gui/wxpython/nviz gui/wxpython/vdigit include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 23 15:25:56 EDT 2009


Author: kyngchaos
Date: 2009-05-23 15:25:56 -0400 (Sat, 23 May 2009)
New Revision: 37407

Modified:
   grass/branches/develbranch_6/gui/wxpython/nviz/Makefile
   grass/branches/develbranch_6/gui/wxpython/vdigit/Makefile
   grass/branches/develbranch_6/include/Make/Platform.make.in
Log:
support 64bit build with 32bit wxpython on OSX

Modified: grass/branches/develbranch_6/gui/wxpython/nviz/Makefile
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/nviz/Makefile	2009-05-23 18:14:38 UTC (rev 37406)
+++ grass/branches/develbranch_6/gui/wxpython/nviz/Makefile	2009-05-23 19:25:56 UTC (rev 37407)
@@ -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 = grass6_wxnviz
 
 SHLIB = $(OBJDIR)/_$(LIB_NAME).so

Modified: grass/branches/develbranch_6/gui/wxpython/vdigit/Makefile
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/vdigit/Makefile	2009-05-23 18:14:38 UTC (rev 37406)
+++ grass/branches/develbranch_6/gui/wxpython/vdigit/Makefile	2009-05-23 19:25:56 UTC (rev 37407)
@@ -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 = grass6_wxvdigit
 
 SHLIB = $(OBJDIR)/_$(LIB_NAME).so

Modified: grass/branches/develbranch_6/include/Make/Platform.make.in
===================================================================
--- grass/branches/develbranch_6/include/Make/Platform.make.in	2009-05-23 18:14:38 UTC (rev 37406)
+++ grass/branches/develbranch_6/include/Make/Platform.make.in	2009-05-23 19:25:56 UTC (rev 37407)
@@ -229,6 +229,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