From 1a484534f533887ee2cd273d182cf3d043029aee Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 22 Aug 2012 16:08:53 +0200 Subject: [PATCH] Pass @OPENMP_CXXFLAGS@ instead of -fopenmp as extra flags so that OpenMP support compiles also correctly on compilers that differ from gcc. --- pyext/setup.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyext/setup.py.in b/pyext/setup.py.in index f89e1d5..0c43fee 100644 --- a/pyext/setup.py.in +++ b/pyext/setup.py.in @@ -1,7 +1,7 @@ ############################################################################# # Disutils setup file for ctools Python extension module # # ------------------------------------------------------------------------- # -# Copyright (C) 2011 Jurgen Knodlseder # +# Copyright (C) 2011-2012 Juergen Knoedlseder # # ------------------------------------------------------------------------- # # # # This program is free software: you can redistribute it and/or modify # @@ -134,8 +134,8 @@ else: # Optionally enable OpenMP if '@OPENMP_TRUE@' != '#': - extra_compile_args = ['-fopenmp'] - extra_link_args = ['-fopenmp'] + extra_compile_args = ['@OPENMP_CXXFLAGS@'] + extra_link_args = ['@OPENMP_CXXFLAGS@'] else: extra_compile_args = [] extra_link_args = [] -- libgit2 0.21.4