[GRASS-SVN] r37490 - grass/branches/develbranch_6/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 25 16:15:04 EDT 2009


Author: kyngchaos
Date: 2009-05-25 16:15:02 -0400 (Mon, 25 May 2009)
New Revision: 37490

Modified:
   grass/branches/develbranch_6/include/Make/Python.make
Log:
Correct link flags for OSX Python modules

Modified: grass/branches/develbranch_6/include/Make/Python.make
===================================================================
--- grass/branches/develbranch_6/include/Make/Python.make	2009-05-25 17:56:01 UTC (rev 37489)
+++ grass/branches/develbranch_6/include/Make/Python.make	2009-05-25 20:15:02 UTC (rev 37490)
@@ -1,7 +1,12 @@
 
 PYTHON = python
-PYMOD_LD = $(SHLIB_LD)
-PYMOD_LDFLAGS = $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR) $(PYTHONLDFLAGS)
+PYMOD_LD = $(CXX) -shared
+PYMOD_LDFLAGS = $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR)
+ifeq ($(findstring darwin,$(ARCH)),darwin)
+PYMOD_LDFLAGS := $(PYMOD_LDFLAGS) -bundle -undefined dynamic_lookup
+else
+PYMOD_LDFLAGS := $(PYMOD_LDFLAGS) $(PYTHONLDFLAGS)
+endif
 PYMOD_CFLAGS = $(SHLIB_CFLAGS) $(PYTHONINC) $(PYTHON_CFLAGS)
 
 %.pyc: %.py



More information about the grass-commit mailing list