From bbaa11786455b5ef7d8709fb8eab334e1352fb1d Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 8 Aug 2009 12:02:30 +0000 Subject: [PATCH] Get pfreeze working on PC-BSD correctly --- direct/src/showutil/FreezeTool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/src/showutil/FreezeTool.py b/direct/src/showutil/FreezeTool.py index c7142b3e82..277f23d6bc 100644 --- a/direct/src/showutil/FreezeTool.py +++ b/direct/src/showutil/FreezeTool.py @@ -108,10 +108,14 @@ elif sys.platform == 'darwin': linkDll = "gcc -undefined dynamic_lookup -bundle -o %(basename)s.so %(basename)s.o" else: - # Linux + # Unix compileObj = "gcc -fPIC -c -o %(basename)s.o -O2 %(filename)s -I %(pythonIPath)s" linkExe = "gcc -o %(basename)s %(basename)s.o -lpython%(pythonVersion)s" linkDll = "gcc -shared -o %(basename)s.so %(basename)s.o -lpython%(pythonVersion)s" + + if (platform.uname()[1]=="pcbsd"): + linkExe += " -L/usr/PCBSD/local/lib" + linkDll += " -L/usr/PCBSD/local/lib" # The code from frozenmain.c in the Python source repository. frozenMainCode = """