|
|
43fe83 |
From 92ee92d29a0150c064a7831d1316d7b1f102bc36 Mon Sep 17 00:00:00 2001
|
|
|
43fe83 |
Message-Id: <92ee92d29a0150c064a7831d1316d7b1f102bc36.1379193140.git.jdenemar@redhat.com>
|
|
|
43fe83 |
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
|
|
|
43fe83 |
Date: Sun, 1 Sep 2013 08:50:58 +0200
|
|
|
43fe83 |
Subject: [PATCH] Pass AM_LDFLAGS to driver modules too
|
|
|
43fe83 |
|
|
|
43fe83 |
https://bugzilla.redhat.com/show_bug.cgi?id=1006299
|
|
|
43fe83 |
|
|
|
43fe83 |
This gives us a RO got, otherwise Debian's lintian complains:
|
|
|
43fe83 |
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_storage.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_uml.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_vbox.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_xen.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_nwfilter.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_storage.so
|
|
|
43fe83 |
W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_uml.so
|
|
|
43fe83 |
W: libvirt-sanlock: hardening-no-relro usr/lib/libvirt/lock-driver/sanlock.so
|
|
|
43fe83 |
(cherry picked from commit f1f0e53b0814aab3c093f1219da95c0f836cdf4a)
|
|
|
43fe83 |
---
|
|
|
43fe83 |
src/Makefile.am | 14 +++++++-------
|
|
|
43fe83 |
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
43fe83 |
|
|
|
43fe83 |
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
|
43fe83 |
index b049895..1b734e0 100644
|
|
|
43fe83 |
--- a/src/Makefile.am
|
|
|
43fe83 |
+++ b/src/Makefile.am
|
|
|
43fe83 |
@@ -991,7 +991,7 @@ libvirt_driver_xen_la_LIBADD = libvirt_driver_xen_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_xen.la
|
|
|
43fe83 |
libvirt_driver_xen_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_xen_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_xen_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_xen.la
|
|
|
43fe83 |
# Stateful, so linked to daemon instead
|
|
|
43fe83 |
@@ -1041,7 +1041,7 @@ libvirt_driver_vbox_la_LIBADD = libvirt_driver_vbox_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_vbox.la
|
|
|
43fe83 |
libvirt_driver_vbox_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_vbox_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_vbox_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_vbox.la
|
|
|
43fe83 |
# GPLv2-only license requries that it be linked into
|
|
|
43fe83 |
@@ -1074,7 +1074,7 @@ libvirt_driver_libxl_la_LIBADD = libvirt_driver_libxl_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_libxl.la
|
|
|
43fe83 |
libvirt_driver_libxl_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_libxl_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_libxl_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_libxl.la
|
|
|
43fe83 |
# Stateful, so linked to daemon instead
|
|
|
43fe83 |
@@ -1099,7 +1099,7 @@ libvirt_driver_qemu_la_LIBADD = libvirt_driver_qemu_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_qemu.la
|
|
|
43fe83 |
libvirt_driver_qemu_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_qemu_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_qemu_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_qemu.la
|
|
|
43fe83 |
# Stateful, so linked to daemon instead
|
|
|
43fe83 |
@@ -1173,7 +1173,7 @@ libvirt_driver_uml_la_LIBADD = libvirt_driver_uml_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_uml.la
|
|
|
43fe83 |
libvirt_driver_uml_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_uml_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_uml_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_uml.la
|
|
|
43fe83 |
# Stateful, so linked to daemon instead
|
|
|
43fe83 |
@@ -1349,7 +1349,7 @@ libvirt_driver_storage_la_LIBADD = libvirt_driver_storage_impl.la
|
|
|
43fe83 |
if WITH_DRIVER_MODULES
|
|
|
43fe83 |
mod_LTLIBRARIES += libvirt_driver_storage.la
|
|
|
43fe83 |
libvirt_driver_storage_la_LIBADD += ../gnulib/lib/libgnu.la
|
|
|
43fe83 |
-libvirt_driver_storage_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+libvirt_driver_storage_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
else
|
|
|
43fe83 |
noinst_LTLIBRARIES += libvirt_driver_storage.la
|
|
|
43fe83 |
# Stateful, so linked to daemon instead
|
|
|
43fe83 |
@@ -2104,7 +2104,7 @@ if WITH_SANLOCK
|
|
|
43fe83 |
lockdriver_LTLIBRARIES += sanlock.la
|
|
|
43fe83 |
sanlock_la_SOURCES = $(LOCK_DRIVER_SANLOCK_SOURCES)
|
|
|
43fe83 |
sanlock_la_CFLAGS = -I$(top_srcdir)/src/conf $(AM_CFLAGS)
|
|
|
43fe83 |
-sanlock_la_LDFLAGS = -module -avoid-version
|
|
|
43fe83 |
+sanlock_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
|
|
43fe83 |
sanlock_la_LIBADD = -lsanlock_client \
|
|
|
43fe83 |
../gnulib/lib/libgnu.la
|
|
|
43fe83 |
|
|
|
43fe83 |
--
|
|
|
43fe83 |
1.8.3.2
|
|
|
43fe83 |
|