summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlestes <wlestes>2008-05-14 19:35:12 +0000
committerwlestes <wlestes>2008-05-14 19:35:12 +0000
commitfe10eb53f87fdc39ba35a7d9dff506f80bb5dbb7 (patch)
tree6722e0084b21904d9b3925b7dba5e009cbf543f3
parentb57636d8aeefef57b29ac9f337d13755c2284a74 (diff)
downloadflex-fe10eb53f87fdc39ba35a7d9dff506f80bb5dbb7.tar.gz
move library flags in linker command; resolves patch #1943403; patch submitted by nullnix@users.sourceforge.net
-rw-r--r--tests/test-pthread/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pthread/Makefile.am b/tests/test-pthread/Makefile.am
index 7d2d062..87474f7 100644
--- a/tests/test-pthread/Makefile.am
+++ b/tests/test-pthread/Makefile.am
@@ -27,7 +27,7 @@ CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) OUTPUT $
OBJS = scanner.o # parser.o
AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
-LDFLAGS = -lpthread
+LIBS = -lpthread
#LFLAGS = --header="scanner.h"
#YFLAGS = --defines --output=parser.c
@@ -37,7 +37,7 @@ scanner.c: $(srcdir)/scanner.l
$(FLEX) $(LFLAGS) $<
$(testname)$(EXEEXT): $(OBJS)
- $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES)
+ $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(LOADLIBES)
test: $(testname)$(EXEEXT)
./$(testname) $(srcdir)/test-*.input