utils/Makefile: Use LOADLIBES instead of LDFLAGS to link the math library.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Sep 2012 00:10:29 +0000 (17:10 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Sep 2012 00:10:29 +0000 (17:10 -0700)
Matthew Pirocchi <mrpirocchi@email.wm.edu>, via John Ousterhout
<ouster@cs.stanford.edu> reports that this fixes a problem on his system.

src/utils/Makefile

index 46a91247d7703bb161053e12fbcd39f749c274ba..e38eb1f3dfa2972035eee486247e40e939a0be38 100644 (file)
@@ -2,7 +2,7 @@ all: setitimer-helper squish-pty squish-unix
 
 CC = gcc
 CFLAGS = -Wall -W
 
 CC = gcc
 CFLAGS = -Wall -W
-LDFLAGS = -lm
+LOADLIBES = -lm
 setitimer-helper: setitimer-helper.o
 squish-pty: squish-pty.o
 squish-unix: squish-unix.o
 setitimer-helper: setitimer-helper.o
 squish-pty: squish-pty.o
 squish-unix: squish-unix.o