diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-28 22:32:45 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-28 22:33:24 -0700 |
commit | ac0d262392a0d3175881eba4f19e47c30c9b9886 (patch) | |
tree | 143f9cf4bf14a2ccf99908f16a36da7d838faedc /math/py-pytanque/files/patch-setup.py | |
parent | math/petanque: New port: Library that helps manipulate symbolic boolean expre... (diff) |
math/py-pytanque: New port: Petanque static python bindings
Diffstat (limited to 'math/py-pytanque/files/patch-setup.py')
-rw-r--r-- | math/py-pytanque/files/patch-setup.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/math/py-pytanque/files/patch-setup.py b/math/py-pytanque/files/patch-setup.py new file mode 100644 index 000000000000..b3f749f6ad8c --- /dev/null +++ b/math/py-pytanque/files/patch-setup.py @@ -0,0 +1,16 @@ +--- setup.py.orig 2021-09-29 05:21:08 UTC ++++ setup.py +@@ -3,11 +3,11 @@ import glob + import platform + import subprocess + +-if platform.system() in ("Linux","Darwin"): ++if platform.system() in ("Linux","Darwin","FreeBSD"): + # This will work w/ GCC and clang + compile_args = ['-std=c++14','-flto','-Dpetanque_STATIC'] + link_args = ['-flto'] +- if platform.system() == "Linux": ++ if platform.system() == "Linux" or platform.system() == "FreeBSD": + link_args = ["-Wl,--strip-all","-Wl,-gc-sections"] + elif platform.system() == "Windows": + compile_args = ['/Dpetanque_STATIC','/TP', '/EHsc'] |