[PATCH libgpg-error] syscfg: Add ARC architecture
Werner Koch
wk at gnupg.org
Fri Sep 21 14:43:19 CEST 2018
On Wed, 19 Sep 2018 17:56, Alexey.Brodkin at synopsys.com said:
> Ok so that's exactly what I was thinking about: xxx-uclibc vs xxx-glibc.
Meanwhile added. See other mail.
> --------------------------->8----------------------------
> # ./mkheader linux-gnu arc-oe-linux-gnu ../../libgpg-error-1.32/src/gpg-error.h.in ../config.h 1.33-unknown 0x012100 > /dev/null
> ../../libgpg-error-1.32/src/gpg-error.h.in:491: error including `../../libgpg-error-1.32/src/syscfg/lock-obj-pub.linux-gnu.h': No such file or
> directory
> --------------------------->8----------------------------
The problem here is that a lock-obj-pub.linux-gnu.h exists and mkheader
prefers that becuase it assumes it is a native build. The Makefile
deletes such a file first but if you call mkheader directly it may still
exist. To make this more explicit, I added an option --cross to disable
this feature. I can now do
--8<---------------cut here---------------start------------->8---
./mkheader --cross arc-oe-linux-uclibc ~/s/libgpg-error/src/gpg-error.h.in ../config.h 1.33-unknown 0x012100 >/dev/null
/home/wk/s/libgpg-error/src/gpg-error.h.in:491: note: including '/home/wk/s/libgpg-error/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h'
--8<---------------cut here---------------end--------------->8---
and that works even if a native files exists. Note that the first arg
to mkheader was removed becuase it is easier to derive it from the
triplet. And -gnu works too:
--8<---------------cut here---------------start------------->8---
./mkheader --cross arc-oe-linux-gnu ~/s/libgpg-error/src/gpg-error.h.in ../config.h 1.33-unknown 0x012100 >/dev/null
/home/wk/s/libgpg-error/src/gpg-error.h.in:491: note: including '/home/wk/s/libgpg-error/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h'
--8<---------------cut here---------------end--------------->8---
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20180921/23fc0000/attachment.sig>
More information about the Gnupg-devel
mailing list