Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: Christopher Larson <kergoth@gmail.com>,
	<openembedded-core@lists.openembedded.org>
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: Re: [PATCH] pseudo: obey our LDFLAGS
Date: Wed, 11 May 2016 11:33:40 -0500	[thread overview]
Message-ID: <b5bb8c60-377b-8885-54e8-aecdde4b94db@windriver.com> (raw)
In-Reply-To: <1462983927-19691-1-git-send-email-kergoth@gmail.com>

On 5/11/16 11:25 AM, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
> 
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
>  .../pseudo/pseudo/obey-ldflags.patch               | 48 ++++++++++++++++++++++
>  meta/recipes-devtools/pseudo/pseudo_1.7.5.bb       | 16 ++++----
>  2 files changed, 56 insertions(+), 8 deletions(-)
>  create mode 100644 meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
> 
> diff --git a/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch b/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
> new file mode 100644
> index 0000000..7e4c629
> --- /dev/null
> +++ b/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
> @@ -0,0 +1,48 @@
> +From 0ace81a687355a3c55caa161b51972a82f5c413f Mon Sep 17 00:00:00 2001
> +From: Christopher Larson <chris_larson@mentor.com>
> +Date: Mon, 9 May 2016 17:00:57 -0700
> +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS
> +
> +Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> +---
> + Makefile.in | 8 ++++----
> + 1 file changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/Makefile.in b/Makefile.in
> +index 6511814..22ef625 100644
> +--- a/Makefile.in
> ++++ b/Makefile.in
> +@@ -109,26 +109,26 @@ pseudo: $(PSEUDO)
> + $(PSEUDO): $(BIN) pseudo.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_server.o pseudo_ipc.o
> + 	$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDO) \
> + 		pseudo.o pseudo_server.o pseudo_client.o pseudo_ipc.o \
> +-		$(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
> ++		$(DBOBJS) $(SHOBJS) $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)

I may be wrong, but I thought the 'client_ldflags' was supposed to inherit the
LDFLAGS, allowing them to be sanitized.

The issue was that pseudo was in a strange situation where it may have to build
both 32-bit and 64-bit clients in order to function properly.

(Perhaps my memory is out of date and it's no longer a concern?)

--Mark

> + 
> + pseudolog: $(PSEUDOLOG)
> + 
> + $(PSEUDOLOG): $(BIN) pseudolog.o $(SHOBJS) $(DBOBJS) pseudo_client.o pseudo_ipc.o
> + 	$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDOLOG) pseudolog.o pseudo_client.o pseudo_ipc.o \
> +-		$(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
> ++		$(DBOBJS) $(SHOBJS) $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
> + 
> + pseudodb: $(PSEUDODB)
> + 
> + $(PSEUDODB): $(BIN) pseudodb.o $(SHOBJS) $(DBOBJS) pseudo_ipc.o
> + 	$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDODB) pseudodb.o \
> +-		$(DBOBJS) $(SHOBJS) pseudo_ipc.o $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
> ++		$(DBOBJS) $(SHOBJS) pseudo_ipc.o $(LDFLAGS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS)
> + 
> + libpseudo: $(LIBPSEUDO)
> + 
> + $(LIBPSEUDO): $(LIB) $(WRAPOBJS) pseudo_client.o pseudo_ipc.o $(SHOBJS)
> + 	$(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -shared -o $(LIBPSEUDO) \
> + 		pseudo_client.o pseudo_ipc.o \
> +-		$(WRAPOBJS) $(SHOBJS) $(CLIENT_LDFLAGS)
> ++		$(WRAPOBJS) $(SHOBJS) $(LDFLAGS) $(CLIENT_LDFLAGS)
> + 
> + # *everything* now relies on stuff that's generated in the
> + # wrapper process.
> +-- 
> +2.8.0
> +
> diff --git a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
> index d90e644..dfb9b39 100644
> --- a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
> +++ b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
> @@ -1,13 +1,13 @@
>  require pseudo.inc
>  
> -SRC_URI = " \
> -    http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2 \
> -    file://0001-configure-Prune-PIE-flags.patch \
> -    file://fallback-passwd \
> -    file://fallback-group \
> -    file://moreretries.patch \
> -    file://handle-remove-xattr.patch \
> -"
> +SRC_URI = "http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2 \
> +           file://0001-configure-Prune-PIE-flags.patch \
> +           file://fallback-passwd \
> +           file://fallback-group \
> +           file://moreretries.patch \
> +           file://handle-remove-xattr.patch \
> +           file://obey-ldflags.patch \
> +           "
>  
>  SRC_URI[md5sum] = "c10209938f03128d0c193f041ff3596d"
>  SRC_URI[sha256sum] = "fd89cadec984d3b8202aca465898b1bb4350e0d63ba9aa9ac899f6f50270e688"
> 



  reply	other threads:[~2016-05-11 16:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-11 16:25 [PATCH] pseudo: obey our LDFLAGS Christopher Larson
2016-05-11 16:33 ` Mark Hatle [this message]
2016-05-11 17:14   ` Christopher Larson
2016-05-11 18:15     ` Mark Hatle
2016-05-11 18:24       ` Christopher Larson
2016-05-12 18:24 ` Peter Seebach
2016-05-13 16:27   ` Richard Purdie
2016-05-13 16:30     ` Christopher Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5bb8c60-377b-8885-54e8-aecdde4b94db@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=chris_larson@mentor.com \
    --cc=kergoth@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox