[GRASS-SVN] r39072 - in grass/trunk: include/Make swig/python

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 7 13:07:54 EDT 2009


Author: kyngchaos
Date: 2009-09-07 13:07:54 -0400 (Mon, 07 Sep 2009)
New Revision: 39072

Modified:
   grass/trunk/include/Make/Python.make
   grass/trunk/swig/python/Makefile
Log:
fix PYMOD_LD for OSX
replace OSX archs for swig/python
vector pymod needs GEOSCFLAGS

Modified: grass/trunk/include/Make/Python.make
===================================================================
--- grass/trunk/include/Make/Python.make	2009-09-07 17:03:05 UTC (rev 39071)
+++ grass/trunk/include/Make/Python.make	2009-09-07 17:07:54 UTC (rev 39072)
@@ -1,11 +1,11 @@
 
 PYTHON = python
-PYMOD_LD = $(CXX) -shared
-PYMOD_LDFLAGS = $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR)
 ifeq ($(findstring darwin,$(ARCH)),darwin)
-PYMOD_LDFLAGS := $(PYMOD_LDFLAGS) -bundle -undefined dynamic_lookup
+PYMOD_LD = $(CXX) -bundle -undefined dynamic_lookup
+PYMOD_LDFLAGS := $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR)
 else
-PYMOD_LDFLAGS := $(PYMOD_LDFLAGS) $(PYTHONLDFLAGS)
+PYMOD_LD = $(CXX) -shared
+PYMOD_LDFLAGS := $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR) $(PYTHONLDFLAGS)
 endif
 PYMOD_CFLAGS = $(SHLIB_CFLAGS) $(PYTHONINC) $(PYTHON_CFLAGS)
 

Modified: grass/trunk/swig/python/Makefile
===================================================================
--- grass/trunk/swig/python/Makefile	2009-09-07 17:03:05 UTC (rev 39071)
+++ grass/trunk/swig/python/Makefile	2009-09-07 17:07:54 UTC (rev 39072)
@@ -6,6 +6,12 @@
 include $(MODULE_TOPDIR)/include/Make/Compile.make
 include $(MODULE_TOPDIR)/include/Make/Doxygen.make
 
+# substitute OSX arch flags for python
+ifneq ($(MACOSX_ARCHS),)
+CFLAGS := $(subst $(MACOSX_ARCHS),,$(CFLAGS)) $(MACOSX_ARCHS_PYTHON)
+LDFLAGS := $(subst $(MACOSX_ARCHS),,$(LDFLAGS)) $(MACOSX_ARCHS_PYTHON)
+endif
+
 # doxygen:
 DOXNAME=
 DOXINPUT=grasspython.dox
@@ -29,7 +35,7 @@
 trans_LIBS      = $(TRANSLIB)
 vedit_LIBS      = $(VEDITLIB)
 
-vector_wrap_c_FLAGS = $(VECT_INC) $(VECT_CFLAGS)
+vector_wrap_c_FLAGS = $(VECT_INC) $(VECT_CFLAGS) $(GEOSCFLAGS)
 vedit_wrap_c_FLAGS = $(VECT_INC) $(VECT_CFLAGS)
 proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
 



More information about the grass-commit mailing list