Skip to contentSkip to conversation

obexd: use AM_LDFLAGS for linking

PATCH New [email protected] 1 participant 2 messages Dec 12, 2017 – Jun 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 obexd: use AM_LDFLAGS for linking

From: Stefan Seyfried <[email protected]>

without this, --enable-pie does not work for obexd

---
 Makefile.obexd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.obexd +1 -1
index 2e33cbc72..86c395305 100644
@@ -83,7 +83,7 @@ obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
 			gdbus/libgdbus-internal.la \
 			@ICAL_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@ -ldl
 
-obexd_src_obexd_LDFLAGS = -Wl,--export-dynamic
+obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
 
 obexd_src_obexd_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
 				@ICAL_CFLAGS@ -DOBEX_PLUGIN_BUILTIN \
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/1 obexd: use AM_LDFLAGS for linking

Also attached, because Thunderbird is likely to screw this up... :-)

Quoted 1 line

From b912306ae756eaf75caa1ab7e04e3112fac4a01c Mon Sep 17 00:00:00 2001

From: Stefan Seyfried <[email protected]>
Date: Mon, 11 Dec 2017 22:52:28 +0100
Subject: [PATCH] obexd: use AM_LDFLAGS for linking

without this, --enable-pie does not work for obexd

---
 Makefile.obexd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.obexd +1 -1
index 2e33cbc72..86c395305 100644
@@ -83,7 +83,7 @@ obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
 			gdbus/libgdbus-internal.la \
 			@ICAL_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@ -ldl
 
-obexd_src_obexd_LDFLAGS = -Wl,--export-dynamic
+obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
 
 obexd_src_obexd_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
 				@ICAL_CFLAGS@ -DOBEX_PLUGIN_BUILTIN \
Signature · 4 lines
Stefan Seyfried

"For a successful technology, reality must take precedence over
 public relations, for nature cannot be fooled." -- Richard Feynman
Quoted 1 line

From b912306ae756eaf75caa1ab7e04e3112fac4a01c Mon Sep 17 00:00:00 2001

From: Stefan Seyfried <[email protected]>
Date: Mon, 11 Dec 2017 22:52:28 +0100
Subject: [PATCH] obexd: use AM_LDFLAGS for linking

without this, --enable-pie does not work for obexd

---
 Makefile.obexd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.obexd +1 -1
index 2e33cbc72..86c395305 100644
@@ -83,7 +83,7 @@ obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
 			gdbus/libgdbus-internal.la \
 			@ICAL_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@ -ldl
 
-obexd_src_obexd_LDFLAGS = -Wl,--export-dynamic
+obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
 
 obexd_src_obexd_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
 				@ICAL_CFLAGS@ -DOBEX_PLUGIN_BUILTIN \
Signature · 1 line
2.15.1