Fixed linking order for libm when building arithchk
This commit is contained in:
parent
4b114f020e
commit
2cf75e969e
1 changed files with 3 additions and 2 deletions
|
|
@ -19,8 +19,9 @@ if env['build_with_f2c']:
|
|||
if not os.path.exists('arith.h'):
|
||||
arithenv = env.Clone()
|
||||
# TODO: make link flag more general
|
||||
arithenv.Append(LINKFLAGS='-lm', CPPFLAGS='-DNO_FPINIT')
|
||||
arithenv.Program('f2c_libs/arithchk/arithchk', source='f2c_libs/arithchk/arithchk.c')
|
||||
arithenv.Append(CPPFLAGS='-DNO_FPINIT')
|
||||
arithenv.Program('f2c_libs/arithchk/arithchk', source='f2c_libs/arithchk/arithchk.c',
|
||||
LIBS=['m'])
|
||||
arithenv.Command('#ext/f2c_libs/arith.h', 'f2c_libs/arithchk/arithchk$PROGSUFFIX',
|
||||
'$SOURCE > $TARGET')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue