[oe] [meta-oe][PATCH] mariadb: -native also needs gold workaround
Khem Raj
raj.khem at gmail.com
Thu Dec 31 08:39:49 UTC 2015
> On Dec 31, 2015, at 12:14 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:
>
>
>> Op 30 dec. 2015, om 19:34 heeft Khem Raj <raj.khem at gmail.com> het volgende geschreven:
>>
>> On Wed, Dec 30, 2015 at 5:57 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:
>>> When the host distro uses gold mariadb-native fails to build.
>>>
>>
>> what is the failure ?
>
> The same one as in http://lists.openembedded.org/pipermail/openembedded-devel/2014-August/097495.html
OK. So it seems that a linker script is being used by without specifying linker option -T to denote that
which will actually make ld.bfd to treat it as add-on to default linker script. however gold will fail
to generate same behavior in current form. If you added -T then gold will do it same as ld.bfd but same won’t
work for ld.bfd since -T will override the implicit/internal linker script that ld.bfd uses. I don’t see an easy common
solution :(
>
>>
>>> Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
>>> ---
>>> meta-oe/recipes-support/mysql/mariadb.inc | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc
>>> index a6826c3..6a55476 100644
>>> --- a/meta-oe/recipes-support/mysql/mariadb.inc
>>> +++ b/meta-oe/recipes-support/mysql/mariadb.inc
>>> @@ -60,6 +60,9 @@ PACKAGECONFIG[setupdb] = ", ,,${PN}-setupdb"
>>> # https://mariadb.atlassian.net/browse/MDEV-5982
>>> TARGET_CFLAGS += "-fuse-ld=bfd"
>>>
>>> +BUILD_CFLAGS += "-fuse-ld=bfd"
>>> +BUILD_CXXFLAGS += "-fuse-ld=bfd"
>>> +
>>> EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
>>> -DWITH_JEMALLOC=no \
>>> -DWITHOUT_TOKUDB=TRUE \
>>> --
>>> 2.0.1
>>>
>>> --
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20151231/2b7722e4/attachment-0002.sig>
More information about the Openembedded-devel
mailing list