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

Kinsbursky Stanislav skinsbursky at openvz.org
Tue Jun 5 11:17:01 EDT 2012


Ack

05.06.2012 18:36, Cyrill Gorcunov написал:
> 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


-- 
Best regards,
Stanislav Kinsbursky




More information about the CRIU mailing list