Hmm, interesting. It doesn&#39;t actually appear to be using LDFLAGS from the environment at all just now. I&#39;ll take another look. Thanks.<br><div class="gmail_quote"><div dir="ltr">On Wed, May 11, 2016 at 9:33 AM Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 5/11/16 11:25 AM, Christopher Larson wrote:<br>
&gt; From: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com" target="_blank">chris_larson@mentor.com</a>&gt;<br>
&gt;<br>
&gt; Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com" target="_blank">chris_larson@mentor.com</a>&gt;<br>
&gt; ---<br>
&gt;  .../pseudo/pseudo/obey-ldflags.patch               | 48 ++++++++++++++++++++++<br>
&gt;  meta/recipes-devtools/pseudo/<a href="http://pseudo_1.7.5.bb" rel="noreferrer" target="_blank">pseudo_1.7.5.bb</a>       | 16 ++++----<br>
&gt;  2 files changed, 56 insertions(+), 8 deletions(-)<br>
&gt;  create mode 100644 meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch<br>
&gt;<br>
&gt; diff --git a/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch b/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch<br>
&gt; new file mode 100644<br>
&gt; index 0000000..7e4c629<br>
&gt; --- /dev/null<br>
&gt; +++ b/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch<br>
&gt; @@ -0,0 +1,48 @@<br>
&gt; +From 0ace81a687355a3c55caa161b51972a82f5c413f Mon Sep 17 00:00:00 2001<br>
&gt; +From: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com" target="_blank">chris_larson@mentor.com</a>&gt;<br>
&gt; +Date: Mon, 9 May 2016 17:00:57 -0700<br>
&gt; +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS<br>
&gt; +<br>
&gt; +Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com" target="_blank">chris_larson@mentor.com</a>&gt;<br>
&gt; +---<br>
&gt; + Makefile.in | 8 ++++----<br>
&gt; + 1 file changed, 4 insertions(+), 4 deletions(-)<br>
&gt; +<br>
&gt; +diff --git a/Makefile.in b/Makefile.in<br>
&gt; +index 6511814..22ef625 100644<br>
&gt; +--- a/Makefile.in<br>
&gt; ++++ b/Makefile.in<br>
&gt; +@@ -109,26 +109,26 @@ pseudo: $(PSEUDO)<br>
&gt; + $(PSEUDO): $(BIN) pseudo.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_server.o pseudo_ipc.o<br>
&gt; +     $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDO) \<br>
&gt; +             pseudo.o pseudo_server.o pseudo_client.o pseudo_ipc.o \<br>
&gt; +-            $(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; ++            $(DBOBJS) $(SHOBJS) $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
<br>
I may be wrong, but I thought the &#39;client_ldflags&#39; was supposed to inherit the<br>
LDFLAGS, allowing them to be sanitized.<br>
<br>
The issue was that pseudo was in a strange situation where it may have to build<br>
both 32-bit and 64-bit clients in order to function properly.<br>
<br>
(Perhaps my memory is out of date and it&#39;s no longer a concern?)<br>
<br>
--Mark<br>
<br>
&gt; +<br>
&gt; + pseudolog: $(PSEUDOLOG)<br>
&gt; +<br>
&gt; + $(PSEUDOLOG): $(BIN) pseudolog.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_ipc.o<br>
&gt; +     $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDOLOG) pseudolog.o pseudo_client.o pseudo_ipc.o \<br>
&gt; +-            $(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; ++            $(DBOBJS) $(SHOBJS) $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; +<br>
&gt; + pseudodb: $(PSEUDODB)<br>
&gt; +<br>
&gt; + $(PSEUDODB): $(BIN) pseudodb.o $(SHOBJS) $(DBOBJS) pseudo_ipc.o<br>
&gt; +     $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDODB) pseudodb.o \<br>
&gt; +-            $(DBOBJS) $(SHOBJS) pseudo_ipc.o $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; ++            $(DBOBJS) $(SHOBJS) pseudo_ipc.o $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; +<br>
&gt; + libpseudo: $(LIBPSEUDO)<br>
&gt; +<br>
&gt; + $(LIBPSEUDO): $(LIB) $(WRAPOBJS) pseudo_client.o pseudo_ipc.o $(SHOBJS)<br>
&gt; +     $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -shared -o $(LIBPSEUDO) \<br>
&gt; +             pseudo_client.o pseudo_ipc.o \<br>
&gt; +-            $(WRAPOBJS) $(SHOBJS) $(CLIENT_LDFLAGS)<br>
&gt; ++            $(WRAPOBJS) $(SHOBJS) $(LDFLAGS) $(CLIENT_LDFLAGS)<br>
&gt; +<br>
&gt; + # *everything* now relies on stuff that&#39;s generated in the<br>
&gt; + # wrapper process.<br>
&gt; +--<br>
&gt; +2.8.0<br>
&gt; +<br>
&gt; diff --git a/meta/recipes-devtools/pseudo/<a href="http://pseudo_1.7.5.bb" rel="noreferrer" target="_blank">pseudo_1.7.5.bb</a> b/meta/recipes-devtools/pseudo/<a href="http://pseudo_1.7.5.bb" rel="noreferrer" target="_blank">pseudo_1.7.5.bb</a><br>
&gt; index d90e644..dfb9b39 100644<br>
&gt; --- a/meta/recipes-devtools/pseudo/<a href="http://pseudo_1.7.5.bb" rel="noreferrer" target="_blank">pseudo_1.7.5.bb</a><br>
&gt; +++ b/meta/recipes-devtools/pseudo/<a href="http://pseudo_1.7.5.bb" rel="noreferrer" target="_blank">pseudo_1.7.5.bb</a><br>
&gt; @@ -1,13 +1,13 @@<br>
&gt;  require pseudo.inc<br>
&gt;<br>
&gt; -SRC_URI = &quot; \<br>
&gt; -    <a href="http://downloads.yoctoproject.org/releases/pseudo/$%7BBPN%7D-$%7BPV%7D.tar.bz2" rel="noreferrer" target="_blank">http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2</a> \<br>
&gt; -    file://0001-configure-Prune-PIE-flags.patch \<br>
&gt; -    file://fallback-passwd \<br>
&gt; -    file://fallback-group \<br>
&gt; -    file://moreretries.patch \<br>
&gt; -    file://handle-remove-xattr.patch \<br>
&gt; -&quot;<br>
&gt; +SRC_URI = &quot;<a href="http://downloads.yoctoproject.org/releases/pseudo/$%7BBPN%7D-$%7BPV%7D.tar.bz2" rel="noreferrer" target="_blank">http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2</a> \<br>
&gt; +           file://0001-configure-Prune-PIE-flags.patch \<br>
&gt; +           file://fallback-passwd \<br>
&gt; +           file://fallback-group \<br>
&gt; +           file://moreretries.patch \<br>
&gt; +           file://handle-remove-xattr.patch \<br>
&gt; +           file://obey-ldflags.patch \<br>
&gt; +           &quot;<br>
&gt;<br>
&gt;  SRC_URI[md5sum] = &quot;c10209938f03128d0c193f041ff3596d&quot;<br>
&gt;  SRC_URI[sha256sum] = &quot;fd89cadec984d3b8202aca465898b1bb4350e0d63ba9aa9ac899f6f50270e688&quot;<br>
&gt;<br>
<br>
</blockquote></div>