[CRIU] [PATCH] make: LIBS should not be in prerequisites
Cyrill Gorcunov
gorcunov at openvz.org
Tue Jun 5 10:36:25 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
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 d095ea4..54f98b0 100644
--- a/Makefile
+++ b/Makefile
@@ -88,9 +88,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