Commit 035626ca authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: Don't pass --wrap on every linking file only for CRIU target only

https://github.com/xemul/criu/issues/155Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8709f912
...@@ -8,7 +8,7 @@ CFLAGS += $(USERCFLAGS) ...@@ -8,7 +8,7 @@ CFLAGS += $(USERCFLAGS)
# here is a workaround for a bug in libnl-3: # here is a workaround for a bug in libnl-3:
# 6a8d90f5fec4 "attr: Allow attribute type 0" # 6a8d90f5fec4 "attr: Allow attribute type 0"
LDFLAGS += -Wl,--wrap=nla_parse,--wrap=nlmsg_parse WRAPFLAGS += -Wl,--wrap=nla_parse,--wrap=nlmsg_parse
export HOSTCC HOSTLD HOSTCFLAGS export HOSTCC HOSTLD HOSTCFLAGS
...@@ -177,7 +177,7 @@ built-in.o: pie ...@@ -177,7 +177,7 @@ built-in.o: pie
criu: $(PROGRAM-BUILTINS) criu: $(PROGRAM-BUILTINS)
$(call msg-link, $@) $(call msg-link, $@)
$(Q) $(CC) $(CFLAGS) $^ $(ARCH-LIB) $(LIBS) $(LDFLAGS) $(GMONLDOPT) -rdynamic -o $@ $(Q) $(CC) $(CFLAGS) $^ $(ARCH-LIB) $(LIBS) $(WRAPFLAGS) $(LDFLAGS) $(GMONLDOPT) -rdynamic -o $@
subclean: subclean:
......
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