From 017241bfe41f1a2aa88986a6f7257df280416f87 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 23 Nov 2009 23:33:16 -0800 Subject: [PATCH] Linking flags for embedded mode. --- Demos/embed/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile index dfb0cc91..bec7335b 100644 --- a/Demos/embed/Makefile +++ b/Demos/embed/Makefile @@ -1,10 +1,11 @@ # Makefile for creating our standalone Cython program PYVERSION=$(shell python -c "import sys; print sys.version[:3]") PYPREFIX=$(shell python -c "import sys; print sys.prefix") +LINKFORSHARED=$(shell python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LINKFORSHARED')") INCLUDES=-I$(PYPREFIX)/include/python$(PYVERSION) embedded: embedded.o - gcc -o $@ $^ -lpython$(PYVERSION) + gcc -o $@ $^ $(LINKFORSHARED) -lpython$(PYVERSION) -lm -lpthread -ldl -lutil embedded.o: embedded.c gcc -c $^ $(INCLUDES) -- 2.26.2