From 2cf75e969ebee9c7a3613b2be1c85c608746cff3 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 14 Dec 2011 19:41:28 +0000 Subject: [PATCH] Fixed linking order for libm when building arithchk --- ext/SConscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/SConscript b/ext/SConscript index 3bacade25..1f83711de 100644 --- a/ext/SConscript +++ b/ext/SConscript @@ -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')