Commit 1177299b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: LIBS should not be in prerequisites

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarKinsbursky Stanislav <skinsbursky@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1f9acbab
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment