pkgsrc/sysutils/xenstoretools/patches/patch-xenstat_libxenstat_Makefile

30 lines
1.1 KiB
Text

$NetBSD: patch-xenstat_libxenstat_Makefile,v 1.1 2016/12/29 23:12:24 wiz Exp $
--- xenstat/libxenstat/Makefile.orig 2013-03-25 19:37:42.000000000 +0000
+++ xenstat/libxenstat/Makefile
@@ -40,7 +40,7 @@
LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ -L$(XEN_LIBXC)/
LDLIBS-y = -lxenstore -lxenctrl
LDLIBS-$(CONFIG_SunOS) += -lkstat
-ARLIBS-y = $(XEN_XENSTORE)/libxenstore.so $(XEN_LIBXC)/libxenctrl.so
+ARLIBS-y =
ARLIBS-x86_64 = /usr/lib/amd64/libkstat.so
ARLIBS-x86_32 = /usr/lib/libkstat.so
ARLIBS-$(CONFIG_SunOS) += $(ARLIBS-$(XEN_TARGET_ARCH))
@@ -57,13 +57,13 @@
$(OBJECTS-y) $(LDLIBS-y)
src/xenstat.o: src/xenstat.c src/xenstat.h src/xenstat_priv.h
- $(CC) $(CFLAGS) $(WARN_FLAGS) -c -o $@ $<
+ $(CC) $(WARN_FLAGS) $(CFLAGS) -c -o $@ $<
src/xenstat_linux.o: src/xenstat_linux.c src/xenstat_priv.h
- $(CC) $(CFLAGS) $(WARN_FLAGS) -c -o $@ $<
+ $(CC) $(WARN_FLAGS) $(CFLAGS) -c -o $@ $<
src/xenstat_solaris.o: src/xenstat_solaris.c src/xenstat_priv.h
- $(CC) $(CFLAGS) $(WARN_FLAGS) -c -o $@ $<
+ $(CC) $(WARN_FLAGS) $(CFLAGS) -c -o $@ $<
src/libxenstat.so.$(MAJOR): $(LIB)
$(MAKE_LINK) $(<F) $@