From 1cba4ac1aef640b454afd18ade4c2f87381cc8ff Mon Sep 17 00:00:00 2001 From: flamingcow Date: Tue, 7 May 2019 23:44:22 -0700 Subject: [PATCH] Linking order matters --- Makefile | 4 ++-- firebuf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 44687af..27d4a26 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,10 @@ firebuf/firebuf.o: $(MAKE) --directory=firebuf firecgi.a: $(objects) - ar rcs $@ $(objects) + ar rcs $@ $^ firecgi.o: $(objects) firebuf/firebuf.o - ld --relocatable --output=$@ $^ + ld --relocatable --output=$@ $+ example_simple: example_simple.o firecgi.o $(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS) diff --git a/firebuf b/firebuf index 63b3584..49766e2 160000 --- a/firebuf +++ b/firebuf @@ -1 +1 @@ -Subproject commit 63b3584cfab40845aa61f31aeb036b06f657e728 +Subproject commit 49766e29f41348ebd9a24cabd6656e8818d3e35b