[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Python patch, was Re: [PATCH] Assorted fixes for macosx 10.2.8
From: |
Johannes Schindelin |
Subject: |
Python patch, was Re: [PATCH] Assorted fixes for macosx 10.2.8 |
Date: |
Fri, 9 Dec 2005 15:16:40 +0100 (CET) |
Hi,
I do not know any longer why I had to set the SHARED_CFLAGS in
compile-vars.make. Just tested the following patch, which works fine here:
diff --git a/stepmake/stepmake/generic-vars.make
b/stepmake/stepmake/generic-vars.make
index fc7e89e..0de08f8 100644
--- a/stepmake/stepmake/generic-vars.make
+++ b/stepmake/stepmake/generic-vars.make
@@ -111,3 +111,8 @@ endif
ifeq ($(HOST_ARCH),i386-mingw32)
MINGW_BUILD = yes
endif
+
+ifeq ($(HOST_ARCH),ppc-darwin)
+DARWIN_BUILD = yes
+endif
+
diff --git a/stepmake/stepmake/python-module-vars.make
b/stepmake/stepmake/python-module-vars.make
index cde4c2d..d982177 100644
--- a/stepmake/stepmake/python-module-vars.make
+++ b/stepmake/stepmake/python-module-vars.make
@@ -13,6 +13,9 @@ ifneq ($(MINGW_BUILD),)
SHARED_MODULE_SUFFIX = .dll
endif
endif
+ifneq ($(DARWIN_BUILD),)
+SHARED_FLAGS = -bundle -flat_namespace -framework Python
+endif
OUT_SO_MODULES = $(addprefix $(outdir)/, $(C_FILES:.c=$(SHARED_MODULE_SUFFIX)))
EXTRA_DIST_FILES += $(PY_MODULES_IN)