From: norly Date: Tue, 12 Feb 2013 15:37:21 +0000 (+0000) Subject: Fix build on Ubuntu 12.04 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=00109bea051ebb16f337c078c96e3492ea4a764b;p=centaur.git Fix build on Ubuntu 12.04 Thanks to Cristian Cadar. --- diff --git a/Makefile b/Makefile index 726b92a..9e07a47 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ debug: $(EXE) $(EXE): $(OBJS) @if [ ! -d $(BUILDDIR) ] ; then echo "Error: Build dir '$(BUILDDIR)' does not exist." ; false ; fi - gcc $(LDFLAGS) -o $@ $^ + gcc -o $@ $^ $(LDFLAGS) $(BUILDDIR)/$(SRCDIR)/%.o: $(SRCDIR)/%.c $(HEADERS) diff --git a/src/lookup/first-section-in-segment.c b/src/lookup/first-section-in-segment.c index b66c518..833563d 100644 --- a/src/lookup/first-section-in-segment.c +++ b/src/lookup/first-section-in-segment.c @@ -1,3 +1,5 @@ +#include + #include #include diff --git a/src/lookup/last-section-in-segment.c b/src/lookup/last-section-in-segment.c index 0e78263..964e854 100644 --- a/src/lookup/last-section-in-segment.c +++ b/src/lookup/last-section-in-segment.c @@ -1,3 +1,5 @@ +#include + #include #include diff --git a/src/lookup/section-name.c b/src/lookup/section-name.c index d3748f9..1365eb6 100644 --- a/src/lookup/section-name.c +++ b/src/lookup/section-name.c @@ -1,3 +1,5 @@ +#include + #include #include