Skip to contentSkip to conversation

broken build

DISCUSSION Wei Liu 1 participant 1 message Mar 26, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Wei Liu

author
#1 lore raw
Quoted 20 lines · Jacob Embree

This is a followup to https://xen.markmail.org/thread/6bzbtbbprexrli2f

According to
https://stackoverflow.com/questions/20369672/undefined-reference-to-dlsym
a couple more flags are needed.

commit 22c7e6d2204114c25625558e1f9634f264f9ac7c

Author: Jacob Embree 
Date:   Sat Mar 24 15:51:31 2018 -0400

Fix LDFLAGS for libxenstore.so

Signed-off-by Jacob Embree
tools/xenstore/Makefile +0 -0
index 69e55e7..1a636ee 100644

tools/xenstore/Makefile libxenstore.so.$(MAJOR): libxenstore.so.$(MAJOR).$(MINOR) · line 110

Quoted 8 lines
tools/xenstore/Makefile +1 -1
@@ -104,7 +104,7 @@ libxenstore.so.$(MAJOR): libxenstore.so.$(MAJOR).$(MINOR)
 xs.opic: CFLAGS += -DUSE_PTHREAD
 ifeq ($(CONFIG_Linux),y)
 xs.opic: CFLAGS += -DUSE_DLSYM
-libxenstore.so.$(MAJOR).$(MINOR): LDFLAGS += -ldl
+libxenstore.so.$(MAJOR).$(MINOR): LDFLAGS += -Wl,--no-as-needed,-ldl
 else
 PKG_CONFIG_REMOVE += -ldl
 endif

I think this is fixed by 1a3731949 with another method.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel