Opened 5 years ago
#6140 new Bug
configure check for miniupnpc fails during cross-compilation
Reported by: | peteru | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | None Set |
Component: | Transmission | Version: | 2.92 |
Severity: | Normal | Keywords: | |
Cc: |
Description
When cross-compiling transmission for an embedded system (in this case using an OpenEmbedded? bitbake recipe) the configure check for a system provided miniupnpc library fails:
checking system miniupnpc library... configure: error: in `/DATA/Source/.../mips32el-oe-linux/transmission/2.84-r0/build': configure: error: cannot run test program while cross compiling
The problem boils down to the fact that detecting miniupnpc API version is done by trying to build and run a program at configure time. Clearly this can not work for cross-compilation environments.
There should be a way of falling back to the bundled miniupnpc implementation when cross-compiling. Either by specifying an argument to configure or by adding code to configure.ac to detect cross-compilation.
Note: See
TracTickets for help on using
tickets.