summaryrefslogtreecommitdiff
path: root/math/py-pytanque/files/patch-setup.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--math/py-pytanque/files/patch-setup.py16
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']