Skip to content

Commit

Permalink
set CPPFLAGS through configure options (refs issue #168)
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Aug 26, 2012
1 parent 42f1cc6 commit f977613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion easybuild/easyblocks/n/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def configure(self):

# add -DgFortran to CPPFLAGS when building with GCC
if self.toolkit().comp_family() == toolkit.GCC:
env.set('CPPFLAGS', "%s -DgFortran" % os.getenv('CPPFLAGS'))
self.updatecfg('configopts', 'CPPFLAGS="%s -DgFortran"' % os.getenv('CPPFLAGS'))

Application.configure(self)

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/n/netcdf_fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import os

import easybuild.tools.environment as env
import easybuild.tools.toolkit as toolkit
from easybuild.framework.application import Application

Expand All @@ -46,7 +45,7 @@ def configure(self):

# add -DgFortran to CPPFLAGS when building with GCC
if self.toolkit().comp_family() == toolkit.GCC:
env.set('CPPFLAGS', "%s -DgFortran" % os.getenv('CPPFLAGS'))
self.updatecfg('configopts', 'CPPFLAGS="%s -DgFortran"' % os.getenv('CPPFLAGS'))

Application.configure(self)

Expand Down

0 comments on commit f977613

Please sign in to comment.