Bug#640719: nec2c: FTBFS with ld --as-needed
Package: nec2c
Version: 0.8-2
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
* Makefile: Move -lm to end of gcc command, resolving FTBFS.
Patch courtesy of John T. Nogatch. (LP: #770919)
Thanks for considering the patch.
diff -u nec2c-0.8/Makefile nec2c-0.8/Makefile
--- nec2c-0.8/Makefile
+++ nec2c-0.8/Makefile
@@ -9,7 +9,7 @@
main.o matrix.o misc.o network.o radiation.o somnec.o
$(PROJECT) : $(objects)
- $(CC) -lm -o $(PROJECT) $(objects)
+ $(CC) -o $(PROJECT) $(objects) -lm
$(objects) : nec2c.h
Reply to: