android - How to tell autoconf about broken cross HOST functions? -


I am trying to exceed an autotools enabled package for an unusual embedded system with very incomplete libc. (If it is relevant: the package is CPython 3.4.2 and the command line is opened on "embedded system" Android 4.4.)

AFAIK is not a way that configure is running On my build machine it can be determined which work is broken on the host. (You can compile and compile the exam programs on the Configure Build Machine, but it has no access to running the program on the host.) So, for example, the function was declared host in host Is & lt; Wchar.h & gt; Defined in the header and host's libc, but the implementation is incorrect.

For this package, there is a file with configure a Config.h one mac macro HAS_WCSFTIME , which is Configure assumes that the host has a wcsftime () and otherwise is undef'd and if the source code of the package is correctly deadfade, if wcsftime () < / Code> is unavailable, then use strftime () instead, with the proper conversion between 7-bit ascii and behind is UCS-4.

I can not just run with configure :

  CPPFALGS = UAEHS_WCSFMEM - build = ... can not run - -host =. .. ...  

Because the config.h file has redefined it anyway.

The options have come to me so far:

  1. Add ac_cv_broken_host_wcsftime variable in the configure.ac file
  2. Ifdef s Add to a HAS_BROKEN_WCSFTIME
  3. Correct the host's libs
  4. Prepare a patch for config.h which defines the HAS_WCSFTIMIM as undefined Remember, and Remember to run the patch every time the option (4) is already done after running configure

Is implemented and it is ... dissatisfied . I can (1) or (2) and contribute back to the package developers, but then these changes will be months before the joining. I am working on option (3), but it will take some time to be deployed in the majority of my user's phone and tablet.

What is the correct way to deal with this problem? (I hope it will pick up a lot because I have got a lot of packages which I want to work on, and there are so many broken functions in libc.)

Is there a command line option? Can not configure and configure cpp macros to code> configure ?

What are some command line options to configure, which can be controlled by me Which CPP macros do not define and define?

No

Your best bet is to talk with package maintenance. They can help you collect an acceptable patch for your package. Then you can apply this patch until it is pushed by the following method.

as the option of 4), you can also pat yourself configure , especially if there is a bootstrap script to make it configure To use the configure or libtool , to take action in the bootstrap script, I am one of the ways I solved this problem in the past. Have given.

if in 3) then you consider Bionic as a library, I used to think that "never" is possibly "taking the year" to achieve detailed character work in it. is.

AFAIK can not determine which work is broken on the host by running on my build machine. (Configure, and compile and link test programs on the build machine, but there is no access to it running the program on the host.)

Most of the truth. Allow runtime on the host configure to test, but unfortunately does not support Android.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -