Commit 1a484534f533887ee2cd273d182cf3d043029aee

Authored by Jürgen Knödlseder
1 parent 5fceda56

Pass @OPENMP_CXXFLAGS@ instead of -fopenmp as extra flags so that OpenMP support…

… compiles also correctly on compilers that differ from gcc.
Showing 1 changed file with 3 additions and 3 deletions
pyext/setup.py.in
1 ############################################################################# 1 #############################################################################
2 # Disutils setup file for ctools Python extension module # 2 # Disutils setup file for ctools Python extension module #
3 # ------------------------------------------------------------------------- # 3 # ------------------------------------------------------------------------- #
4 -# Copyright (C) 2011 Jurgen Knodlseder # 4 +# Copyright (C) 2011-2012 Juergen Knoedlseder #
5 # ------------------------------------------------------------------------- # 5 # ------------------------------------------------------------------------- #
6 # # 6 # #
7 # This program is free software: you can redistribute it and/or modify # 7 # This program is free software: you can redistribute it and/or modify #
@@ -134,8 +134,8 @@ else: @@ -134,8 +134,8 @@ else:
134 134
135 # Optionally enable OpenMP 135 # Optionally enable OpenMP
136 if '@OPENMP_TRUE@' != '#': 136 if '@OPENMP_TRUE@' != '#':
137 - extra_compile_args = ['-fopenmp']  
138 - extra_link_args = ['-fopenmp'] 137 + extra_compile_args = ['@OPENMP_CXXFLAGS@']
  138 + extra_link_args = ['@OPENMP_CXXFLAGS@']
139 else: 139 else:
140 extra_compile_args = [] 140 extra_compile_args = []
141 extra_link_args = [] 141 extra_link_args = []