Author: Juan Francisco Cantero Hurtado <[email protected]>
Branch:
Changeset: r64707:e92ef8459498
Date: 2013-06-02 05:40 +0200
http://bitbucket.org/pypy/pypy/changeset/e92ef8459498/
Log: Fixes to OpenBSD.
- Fixes the order of CFLAGS and LDFLAGS.
- Uses the compiler within $CC with a fallback to cc.
Both changes make the work of the packagers easier.
diff --git a/rpython/translator/platform/openbsd.py
b/rpython/translator/platform/openbsd.py
--- a/rpython/translator/platform/openbsd.py
+++ b/rpython/translator/platform/openbsd.py
@@ -5,11 +5,16 @@
from rpython.translator.platform.bsd import BSD
class OpenBSD(BSD):
- DEFAULT_CC = "cc"
+ if os.environ.get("CC") is None:
+ DEFAULT_CC = "cc"
+ else:
+ DEFAULT_CC = os.environ.get("CC")
+
name = "openbsd"
- link_flags = os.environ.get("LDFLAGS", '-pthread').split()
- cflags = os.environ.get("CFLAGS", "-O3 -pthread -fomit-frame-pointer
-D_BSD_SOURCE").split()
+ link_flags = os.environ.get("LDFLAGS", "").split() + ['-pthread']
+ cflags = ['-O3', '-pthread', '-fomit-frame-pointer', '-D_BSD_SOURCE'
+ ] + os.environ.get("CFLAGS", "").split()
def _libs(self, libraries):
libraries=set(libraries + ("intl", "iconv", "compat"))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit