Fixing problem with linking to libm on some Ubuntu systems (I see this on machine running 11.04, kernel 3.0.0-14-virtual). Changing order of -lm on the command line seems to do the trick and should be tolerated in other environments.

This commit is contained in:
Jon Sorenson 2013-03-05 20:48:16 +00:00
parent 98f8966750
commit 25366c7220
1 changed files with 2 additions and 2 deletions

View File

@ -23,10 +23,10 @@ SUBDIRS= .
all:$(PROG) all:$(PROG)
bwa:libbwa.a $(AOBJS) main.o bwa:libbwa.a $(AOBJS) main.o
$(CC) $(CFLAGS) $(DFLAGS) $(AOBJS) main.o -o $@ $(LIBS) -L. -lbwa $(CC) $(CFLAGS) $(DFLAGS) $(AOBJS) main.o -o $@ -L. -lbwa $(LIBS)
bwamem-lite:libbwa.a example.o bwamem-lite:libbwa.a example.o
$(CC) $(CFLAGS) $(DFLAGS) example.o -o $@ $(LIBS) -L. -lbwa $(CC) $(CFLAGS) $(DFLAGS) example.o -o $@ -L. -lbwa $(LIBS)
libbwa.a:$(LOBJS) libbwa.a:$(LOBJS)
$(AR) -csru $@ $(LOBJS) $(AR) -csru $@ $(LOBJS)