pseudo: obey our LDFLAGS
PATCH 1/1 pseudo: obey our LDFLAGS
From: Christopher Larson <[email protected]>
--- .../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
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 0ace81a687355a3c55caa161b51972a82f5c413f Mon Sep 17 00:00:00 2001 +From: Christopher Larson <[email protected]> +Date: Mon, 9 May 2016 17:00:57 -0700 +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS + +Signed-off-by: Christopher Larson <[email protected]> +--- + 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) + + 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 +
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb +8 -8
@@ -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"
Signature · 1 line
2.8.0
Quoted 25 lines · Christopher Larson
From: Christopher Larson <[email protected]>
Signed-off-by Christopher Larson <[email protected]>--- .../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.patchmeta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +10
-0@@ -0,0 +1,48 @@ +From 0ace81a687355a3c55caa161b51972a82f5c413f Mon Sep 17 00:00:00 2001 +From: Christopher Larson <[email protected]> +Date: Mon, 9 May 2016 17:00:57 -0700 +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS + +Signed-off-by: Christopher Larson <[email protected]> +--- + Makefile.in | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) +
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch line 20
Quoted 10 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +10
-0+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
Quoted 55 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +28
-0+ + 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 +meta/recipes-devtools/pseudo/pseudo_1.7.5.bb +8
-8@@ -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"
Hmm, interesting. It doesn't actually appear to be using LDFLAGS from the environment at all just now. I'll take another look. Thanks.
Quoted 120 lines · Mark Hatle
Quoted 5 lines · Christopher Larson
From: Christopher Larson <[email protected]>
Signed-off-by Christopher Larson <[email protected]>--- .../pseudo/pseudo/obey-ldflags.patch | 48++++++++++++++++++++++
Quoted 3 lines
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.patchReview
Quoted 2 lines
(quoted diff) +0
-0
b/meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patchQuoted 11 lines
new file mode 100644
index 0000000..7e4c629meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +6
-0@@ -0,0 +1,48 @@ +From 0ace81a687355a3c55caa161b51972a82f5c413f Mon Sep 17 00:00:00 2001 +From: Christopher Larson <[email protected]> +Date: Mon, 9 May 2016 17:00:57 -0700 +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS + +Signed-off-by: Christopher Larson <[email protected]>meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch line 16
Quoted 10 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +10
-0+--- + 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.opseudo_server.o pseudo_ipc.o
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
Quoted 4 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +4
-0+ $(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
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
Quoted 4 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +4
-0+ + pseudolog: $(PSEUDOLOG) + + $(PSEUDOLOG): $(BIN) pseudolog.o $(SHOBJS) $(DBOBJS) pseudo_client.opseudo_ipc.o
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch line 25
Quoted 1 line
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +1
-0+ $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -o $(PSEUDOLOG) pseudolog.opseudo_client.o pseudo_ipc.o \
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch line 27
Quoted 2 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +2
-0+- $(DBOBJS) $(SHOBJS) $(DB_LDFLAGS) $(CLIENT_LDFLAGS) ++ $(DBOBJS) $(SHOBJS) $(LDFLAGS) $(DB_LDFLAGS)$(CLIENT_LDFLAGS)
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch
Quoted 6 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +6
-0+ + 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)
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch line 34
Quoted 1 line
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +1
-0++ $(DBOBJS) $(SHOBJS) pseudo_ipc.o $(LDFLAGS) $(DB_LDFLAGS)$(CLIENT_LDFLAGS)
Review
Quoted 15 lines
meta/recipes-devtools/pseudo/pseudo/obey-ldflags.patch new file +14
-0+ + 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 +(quoted diff) +0
-0b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb line 4
Quoted 8 lines
index d90e644..dfb9b39 100644
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb +0
-2@@ -1,13 +1,13 @@ require pseudo.inc -SRC_URI = " \ -http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2 \
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
Quoted 7 lines
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb +1
-6- 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 \
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
Quoted 10 lines
meta/recipes-devtools/pseudo/pseudo_1.7.5.bb +7
-0+ 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"Quoted 1 line
Quoted 2 lines · Christopher Larson
Hmm, interesting. It doesn't actually appear to be using LDFLAGS from the environment at all just now. I'll take another look. Thanks.
CFLAGS and LDFLAGS should have been loaded and sanitized by the 'configure' front end. If this is not happening any longer -- then behavior has changed (or my understanding of the behavior is wrong.)
End result, everything specified in CFLAGS and LDFLAGS that is machine neutral (i.e. not -m32, or -march=i586) should be preserved and used (unless specifically removed for another reason.)
--Mark
Quoted 126 lines
On Wed, May 11, 2016 at 9:33 AM Mark Hatle <[email protected] <mailto:[email protected]>> wrote:
On 5/11/16 11:25 AM, Christopher Larson wrote: > From: Christopher Larson <[email protected] <mailto:[email protected]>> > > Signed-off-by: Christopher Larson <[email protected] <mailto:[email protected]>> > --- > .../pseudo/pseudo/obey-ldflags.patch | 48 ++++++++++++++++++++++ > meta/recipes-devtools/pseudo/pseudo_1.7.5.bb <http://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 <[email protected] <mailto:[email protected]>> > +Date: Mon, 9 May 2016 17:00:57 -0700 > +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS > + > +Signed-off-by: Christopher Larson <[email protected] <mailto:[email protected]>> > +--- > + 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 <http://pseudo_1.7.5.bb> b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb <http://pseudo_1.7.5.bb> > index d90e644..dfb9b39 100644 > --- a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb <http://pseudo_1.7.5.bb> > +++ b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb <http://pseudo_1.7.5.bb> > @@ -1,13 +1,13 @@ > require pseudo.inc > > -SRC_URI = " \ > - http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2 <http://downloads.yoctoproject.org/releases/pseudo/$%7BBPN%7D-$%7BPV%7D.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 <http://downloads.yoctoproject.org/releases/pseudo/$%7BBPN%7D-$%7BPV%7D.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" >
Quoted 10 lines · Mark Hatle
Quoted 2 lines · Christopher Larson
Hmm, interesting. It doesn't actually appear to be using LDFLAGS from the environment at all just now. I'll take another look. Thanks.
CFLAGS and LDFLAGS should have been loaded and sanitized by the 'configure'
front end. If this is not happening any longer -- then behavior has changed (or
my understanding of the behavior is wrong.)
Quoted 4 lines
End result, everything specified in CFLAGS and LDFLAGS that is machine neutral
(i.e. not -m32, or -march=i586) should be preserved and used (unless specifically removed for another reason.)
The configure script doesn't touch either one from the environment. The CFLAGS env var is used as is in the makefiles. Cflags passed in via --cflags= replace the arch cflags, however. Since we don't place anything arch specific in cflags or ldflags, I don't see that this is an issue, and it has a separate argument to handle arch specific cflags.
Signature · 5 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 1 line · On Wed, 11 May 2016 09:25:27 -0700 Christopher Larson <[email protected]> wrote:
+Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS
This has been merged into pseudo's upstream, now, but it's on top of some large changes, so we should probably go ahead with the local patch until later.
-s
Signature · 1 line
Listen, get this. Nobody with a good compiler needs to be justified.
Quoted 10 lines · Peter Seebach
Quoted 1 line · On Wed, 11 May 2016 09:25:27 -0700 Christopher Larson <[email protected]> wrote:
+Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS
This has been merged into pseudo's upstream, now, but it's on top of some
large changes, so we should probably go ahead with the local patch until
later.
The original patch was missing an Upstream-Status. Since I don't particularly want to have to think about this again, I've queued it with an Upstream-Status: Backport in this case.
Cheers,
Richard
Quoted 12 lines · Richard Purdie
Quoted 10 lines · Peter Seebach
Quoted 1 line · On Wed, 11 May 2016 09:25:27 -0700 Christopher Larson <[email protected]> wrote:
+Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS
This has been merged into pseudo's upstream, now, but it's on top of some
large changes, so we should probably go ahead with the local patch until
later.
Quoted 3 lines
The original patch was missing an Upstream-Status. Since I don't particularly want to have to think about this again, I've queued it with an Upstream-Status: Backport in this case.
Thanks, sorry about that.
Signature · 5 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics