Lines 1-6
Link Here
|
1 |
--- src/Makefile.am.orig 2015-05-26 19:38:14 UTC |
1 |
--- src/Makefile.am.orig 2015-05-26 19:38:14 UTC |
2 |
+++ src/Makefile.am |
2 |
+++ src/Makefile.am |
3 |
@@ -14,7 +14,7 @@ AM_CPPFLAGS = -I$(srcdir)/daemon |
3 |
@@ -7,14 +7,14 @@ SUBDIRS += daemon |
|
|
4 |
PLUGIN_LDFLAGS = -module -avoid-version -export-symbols-regex '\<module_register\>' |
5 |
|
6 |
if COMPILER_IS_GCC |
7 |
-AM_CFLAGS = -Wall -Werror |
8 |
+AM_CFLAGS = -Wall |
9 |
endif |
10 |
|
11 |
AM_CPPFLAGS = -I$(srcdir)/daemon |
4 |
AM_CPPFLAGS += -DPREFIX='"${prefix}"' |
12 |
AM_CPPFLAGS += -DPREFIX='"${prefix}"' |
5 |
AM_CPPFLAGS += -DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"' |
13 |
AM_CPPFLAGS += -DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"' |
6 |
AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"' |
14 |
AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"' |
Lines 27-33
Link Here
|
27 |
endif |
35 |
endif |
28 |
if BUILD_WITH_LIBDEVINFO |
36 |
if BUILD_WITH_LIBDEVINFO |
29 |
disk_la_LIBADD += -ldevinfo |
37 |
disk_la_LIBADD += -ldevinfo |
30 |
@@ -408,7 +408,7 @@ interface_la_CFLAGS += $(BUILD_WITH_LIBS |
38 |
@@ -321,6 +321,9 @@ endif |
|
|
39 |
if BUILD_WITH_PERFSTAT |
40 |
disk_la_LIBADD += -lperfstat |
41 |
endif |
42 |
+if BUILD_FREEBSD |
43 |
+disk_la_LIBADD += -ldevstat -lgeom |
44 |
+endif |
45 |
endif |
46 |
|
47 |
if BUILD_PLUGIN_DNS |
48 |
@@ -408,7 +411,7 @@ interface_la_CFLAGS += $(BUILD_WITH_LIBS |
31 |
interface_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) |
49 |
interface_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) |
32 |
else |
50 |
else |
33 |
if BUILD_WITH_LIBKSTAT |
51 |
if BUILD_WITH_LIBKSTAT |
Lines 36-42
Link Here
|
36 |
endif |
54 |
endif |
37 |
if BUILD_WITH_LIBDEVINFO |
55 |
if BUILD_WITH_LIBDEVINFO |
38 |
interface_la_LIBADD += -ldevinfo |
56 |
interface_la_LIBADD += -ldevinfo |
39 |
@@ -591,7 +591,7 @@ memory_la_CFLAGS = $(AM_CFLAGS) |
57 |
@@ -591,7 +594,7 @@ memory_la_CFLAGS = $(AM_CFLAGS) |
40 |
memory_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
58 |
memory_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
41 |
memory_la_LIBADD = |
59 |
memory_la_LIBADD = |
42 |
if BUILD_WITH_LIBKSTAT |
60 |
if BUILD_WITH_LIBKSTAT |
Lines 45-51
Link Here
|
45 |
endif |
63 |
endif |
46 |
if BUILD_WITH_LIBDEVINFO |
64 |
if BUILD_WITH_LIBDEVINFO |
47 |
memory_la_LIBADD += -ldevinfo |
65 |
memory_la_LIBADD += -ldevinfo |
48 |
@@ -964,7 +964,7 @@ swap_la_CFLAGS = $(AM_CFLAGS) |
66 |
@@ -964,7 +967,7 @@ swap_la_CFLAGS = $(AM_CFLAGS) |
49 |
swap_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
67 |
swap_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
50 |
swap_la_LIBADD = |
68 |
swap_la_LIBADD = |
51 |
if BUILD_WITH_LIBKSTAT |
69 |
if BUILD_WITH_LIBKSTAT |
Lines 54-60
Link Here
|
54 |
endif |
72 |
endif |
55 |
if BUILD_WITH_LIBDEVINFO |
73 |
if BUILD_WITH_LIBDEVINFO |
56 |
swap_la_LIBADD += -ldevinfo |
74 |
swap_la_LIBADD += -ldevinfo |
57 |
@@ -1010,7 +1010,7 @@ if BUILD_PLUGIN_TAPE |
75 |
@@ -1010,7 +1013,7 @@ if BUILD_PLUGIN_TAPE |
58 |
pkglib_LTLIBRARIES += tape.la |
76 |
pkglib_LTLIBRARIES += tape.la |
59 |
tape_la_SOURCES = tape.c |
77 |
tape_la_SOURCES = tape.c |
60 |
tape_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
78 |
tape_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
Lines 63-69
Link Here
|
63 |
endif |
81 |
endif |
64 |
|
82 |
|
65 |
if BUILD_PLUGIN_TARGET_NOTIFICATION |
83 |
if BUILD_PLUGIN_TARGET_NOTIFICATION |
66 |
@@ -1116,7 +1116,7 @@ uptime_la_CFLAGS = $(AM_CFLAGS) |
84 |
@@ -1116,7 +1119,7 @@ uptime_la_CFLAGS = $(AM_CFLAGS) |
67 |
uptime_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
85 |
uptime_la_LDFLAGS = $(PLUGIN_LDFLAGS) |
68 |
uptime_la_LIBADD = |
86 |
uptime_la_LIBADD = |
69 |
if BUILD_WITH_LIBKSTAT |
87 |
if BUILD_WITH_LIBKSTAT |
Lines 72-78
Link Here
|
72 |
endif |
90 |
endif |
73 |
if BUILD_WITH_PERFSTAT |
91 |
if BUILD_WITH_PERFSTAT |
74 |
uptime_la_LIBADD += -lperfstat |
92 |
uptime_la_LIBADD += -lperfstat |
75 |
@@ -1275,7 +1275,7 @@ if BUILD_LINUX |
93 |
@@ -1275,7 +1278,7 @@ if BUILD_LINUX |
76 |
# zfs_arc requires no library on linux |
94 |
# zfs_arc requires no library on linux |
77 |
else |
95 |
else |
78 |
# solaris |
96 |
# solaris |
Lines 81-87
Link Here
|
81 |
endif |
99 |
endif |
82 |
endif |
100 |
endif |
83 |
endif |
101 |
endif |
84 |
@@ -1364,12 +1364,7 @@ endif |
102 |
@@ -1364,12 +1367,7 @@ endif |
85 |
|
103 |
|
86 |
install-exec-hook: |
104 |
install-exec-hook: |
87 |
$(mkinstalldirs) $(DESTDIR)$(sysconfdir) |
105 |
$(mkinstalldirs) $(DESTDIR)$(sysconfdir) |