ports/devel/gnatpython/files/patch-setup__helpers.py
John Marino 998dc42e73 devel/gnatpython: Correct build on FreeBSD 10+
GNATPython was hardcoded to use gcc and that caused the c-based rlimit
utility to fail to build.  Changing "gcc" to "cc" in the setup script
solved the issue for clang-based systems.
2014-05-16 14:32:33 +00:00

11 lines
533 B
Python

--- setup_helpers.py.orig 2014-02-14 10:41:26.000000000 +0000
+++ setup_helpers.py
@@ -28,7 +28,7 @@ def build_scripts_gnatpython(root_dir=''
os.system('gcc -o %sscripts/rlimit %ssrc/rlimit/rlimit-NT.c' %
(root_dir, root_dir))
else:
- os.system('gcc -o %sscripts/rlimit %ssrc/rlimit/rlimit.c' %
+ os.system('cc -o %sscripts/rlimit %ssrc/rlimit/rlimit.c' %
(root_dir, root_dir))
# Update the scripts list