[CRIU] [PATCH 08/21] make: LIBS should not be in prerequisites

Cyrill Gorcunov gorcunov at openvz.org
Wed Jun 6 18:21:48 EDT 2012


Use them explicitly. This fixes problem

 |  LINK     crtools
 | /usr/lib/librt.so: could not read symbols: File in wrong format
 | collect2: ld returned 1 exit status
 | make[1]: *** [crtools] Error 1
 | make: *** [all] Error 2

Acked-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 89e3efa..44b6854 100644
--- a/Makefile
+++ b/Makefile
@@ -87,9 +87,9 @@ pie: $(PIE-GEN)
 	$(E) "  DEP     " $@
 	$(Q) $(CC) -M -MT $@ -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
 
-$(PROGRAM): $(OBJS) $(LIBS) $(SYS-OBJ) 
+$(PROGRAM): $(OBJS) $(SYS-OBJ)
 	$(E) "  LINK    " $@
-	$(Q) $(CC) $(CFLAGS) $^ -o $@
+	$(Q) $(CC) $(CFLAGS) $^ $(LIBS) -o $@
 
 test-legacy: all
 	$(Q) $(MAKE) -C test/legacy all
-- 
1.7.7.6



More information about the CRIU mailing list