Permalink
Browse files

Update for building on FreeBSD

Thanks sk89q for the patch.

[#13 state:resolved]
  • Loading branch information...
1 parent 74291c8 commit 9eafe1941d7009b9c29e02d3057795677079a32a Paul Davis committed May 10, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −0 THANKS
  2. +2 −2 setup.py
View
@@ -3,3 +3,4 @@ Thanks For Patches and Pointers
===============================
benoitc - build system tweaks, compiling on OpenBSD
Mark Lee - Patch for iterating JS arrays in Python
+sk89q - Info for FreeBSD builds
View
@@ -68,13 +68,13 @@ def platform_config():
"-Wno-strict-prototypes"
])
- if sysname == "Linux":
+ if sysname in ["Linux", "FreeBSD"]:
config["extra_compile_args"].extend([
"-DHAVE_VA_COPY",
"-DVA_COPY=va_copy"
])
- if sysname in ["Darwin", "Linux"]:
+ if sysname in ["Darwin", "Linux", "FreeBSD"]:
config["extra_compile_args"].append("-DXP_UNIX")
else:
raise RuntimeError("Unknown system name: %s" % sysname)

0 comments on commit 9eafe19

Please sign in to comment.