Get pfreeze working on PC-BSD correctly

This commit is contained in:
rdb
2009-08-08 12:02:30 +00:00
parent 48d4bf4fb8
commit bbaa117864

View File

@@ -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 = """