From 003add7a98941f41cf7d7eec1d8186d46977dff1 Mon Sep 17 00:00:00 2001 From: C Nelson Date: Sat, 6 Apr 2013 13:45:13 -0500 Subject: [PATCH] Fix the order of -l flags to fix compiling unoptar Fixes #2 Apparently the order of the flags matters. Go figure. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c62e52..7f3e575 100644 --- a/Makefile +++ b/Makefile @@ -45,4 +45,4 @@ golay: golay.o parity.o gcc $(LDFLAGS) -o $@ $^ unoptar: unoptar.o common.o golay_codes.o parity.o - gcc $(LDFLAGS) -o $@ -L/usr/local/lib -lpng -lz $^ + gcc -o $@ -L/usr/local/lib $^ -lm -lpng -lz