From 77355de65f5bd9aac1fa58ea0dd2edb706055eb2 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 12 Aug 2012 21:48:29 +0200 Subject: [PATCH] Always set extra flags --- pyext/setup.py.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pyext/setup.py.in b/pyext/setup.py.in index 37887e5..bf0c238 100644 --- a/pyext/setup.py.in +++ b/pyext/setup.py.in @@ -132,10 +132,14 @@ if is_unit_test: else: data_files=[('@prefix@/share/ctools/swig', install_files)] +# Optionally add OpenMP support if '@OPENMP_TRUE@' != '#': - extra_compile_args=['-fopenmp'] - extra_link_args=['-fopenmp'] - + extra_compile_args=['-fopenmp'] + extra_link_args=['-fopenmp'] +else: + extra_compile_args=[] + extra_link_args=[] + # Setup setup(name='@PACKAGE_NAME@', version='@PACKAGE_VERSION@', -- libgit2 0.21.4