As requested by some linkers that use by default --as-needed, libraries
must appears after objects that use them.
The problem was first noticed with Ubuntu 11.10 but some other systems
may use it soon or latter.
Signed-off-by: Jean Privat <jean@pryen.org>
done
if [ $vverbose = true ] ; then
- echo "* $CC $OPTS -lm $objs -o $out" >&2
+ echo "* $CC $OPTS $objs -lm -o $out" >&2
fi
-$CC $OPTS -lm $objs -o "$out"
+$CC $OPTS $objs -lm -o "$out"