<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,8 +27,11 @@ LDFLAGS = $(shell test -d ../pcre &amp;&amp; echo -L../pcre) -lpcre
 
 all: driver combine
 driver: driver.o libbitconvert.a
-driver.o: driver.c bitconvert.h
+	$(CC) driver.o libbitconvert.a -o $@ $(LDFLAGS)
 combine: combine.o libbitconvert.a
+	$(CC) combine.o libbitconvert.a -o $@ $(LDFLAGS)
+
+driver.o: driver.c bitconvert.h
 combine.o: combine.c bitconvert.h
 bitconvert.o: bitconvert.c bitconvert.h
 </diff>
      <filename>Makefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5e85f7d75c9a7902e1879d476110bfaaa7ed7f3b</id>
    </parent>
  </parents>
  <author>
    <name>Denver Gingerich</name>
    <email>denver@ossguy.com</email>
  </author>
  <url>http://github.com/ossguy/libbitconvert/commit/20f10196e90e01603d4d9ee50881d0e07b587ca5</url>
  <id>20f10196e90e01603d4d9ee50881d0e07b587ca5</id>
  <committed-date>2009-05-25T12:53:51-07:00</committed-date>
  <authored-date>2009-05-25T12:53:51-07:00</authored-date>
  <message>$(LDFLAGS) must be at the end of the link options

The implicit link command in GNU make places $(LDFLAGS) just after $(CC).
This causes linking to fail on MinGW gcc 3.4.2 because of &quot;undefined
reference&quot; errors for libpcre functions.  Placing $(LDFLAGS) at the end of
the link options fixes the problem.</message>
  <tree>de245ae19d10b3fc5437bb916c76d6f46cd5587b</tree>
  <committer>
    <name>Denver Gingerich</name>
    <email>denver@ossguy.com</email>
  </committer>
</commit>
