Browse Source

strip 64bit arch flags on OSX if 32bit-only wxpython

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38500 15284696-431f-4ddb-bdfa-cd5b030d7da7
William Kyngesburye 16 years ago
parent
commit
b54d2a9601
1 changed files with 7 additions and 0 deletions
  1. 7 0
      visualization/xganim/Makefile

+ 7 - 0
visualization/xganim/Makefile

@@ -9,6 +9,13 @@ DEPENDENCIES = $(GISDEP) $(RASTERDEP)
 
 include $(MODULE_TOPDIR)/include/Make/Module.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
+
 LINK = $(CXX)
 
 ifneq ($(USE_WXWIDGETS),)