Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / py-cryptopp / patches / patch-setup.py
blobdb9db50a749db4ff55c91502271fedff0227c38e
1 $NetBSD$
3 --- setup.py.orig 2012-12-23 21:32:49.000000000 +0000
4 +++ setup.py
5 @@ -77,6 +77,21 @@ if DEBUG:
6 else:
7 extra_compile_args.append("-w")
9 +# XXX Use distutils
10 +if "CC" in os.environ:
11 + try:
12 + sp = subprocess.Popen([os.environ['CC'], '--version'],
13 + stdin=subprocess.PIPE,
14 + stdout=subprocess.PIPE,
15 + stderr=subprocess.PIPE,
16 + universal_newlines=True)
17 + sp.stdin.close()
18 + sp.wait()
19 + if re.search("clang version", sp.stdout.read()):
20 + extra_compile_args.append("-no-integrated-as")
21 + except:
22 + pass
24 if DISABLE_EMBEDDED_CRYPTOPP:
25 define_macros.append(('DISABLE_EMBEDDED_CRYPTOPP', 1))