[libnet-dbus-perl] 285/335: Don't add -Wall on non-linux hosts (rt #46218)
Intrigeri
intrigeri at moszumanska.debian.org
Sat Mar 21 01:08:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.
commit 35c6e7bd6bbba5892a6753e0d7cee3e3d36f14fe
Author: Daniel P. Berrange <dan at berrange.com>
Date: Tue Jun 28 23:12:27 2011 +0100
Don't add -Wall on non-linux hosts (rt #46218)
---
Makefile.PL | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index e3b4a62..8f62152 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -16,6 +16,11 @@ if (!$DBUS_LIBS || !$DBUS_CFLAGS) {
die "'pkg-config' didn't report any compiler/linker flags for dbus library\n";
}
+my $wall = "";
+if ($^O eq "linux") {
+ $wall = "-Wall";
+}
+
WriteMakefile(
'NAME' => 'Net::DBus',
'VERSION_FROM' => 'lib/Net/DBus.pm',
@@ -29,7 +34,7 @@ WriteMakefile(
'DEFINE' => ($has_0_90 ?
"-DDBUS_API_SUBJECT_TO_CHANGE -DHAVE_CONN_DISCONNECT=0 -DNET_DBUS_DEBUG=1" :
"-DDBUS_API_SUBJECT_TO_CHANGE -DHAVE_CONN_DISCONNECT=1 -DNET_DBUS_DEBUG=1"),
- 'INC' => "-Wall $DBUS_CFLAGS",
+ 'INC' => "$wall $DBUS_CFLAGS",
'NO_META' => 1,
'depend' => {
Net-DBus.spec => '$(VERSION_FROM)',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git
More information about the Pkg-perl-cvs-commits
mailing list