void-packages/srcpkgs/xen/patches/libxc_liblink_position.patch
2011-01-10 12:03:00 +01:00

13 lines
718 B
Diff

Pass library list to link in the correct place to avoid missing symbols.
--- tools/libxc/Makefile.orig 2011-01-10 11:13:56.365905921 +0100
+++ tools/libxc/Makefile 2011-01-10 11:14:12.261224745 +0100
@@ -174,7 +174,7 @@ xc_dom_bzimageloader.opic: CFLAGS += $(c
libxenguest.so.$(MAJOR).$(MINOR): LDFLAGS += $(call zlib-options,l)
libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so
- $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $(GUEST_PIC_OBJS) -lz -lxenctrl $(PTHREAD_LIBS)
+ $(CC) $(CFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $(GUEST_PIC_OBJS) -lz -lxenctrl $(PTHREAD_LIBS) $(LDFLAGS)
-include $(DEPS)