Skip to content

configure.ac: do not run conftest in case of cross compilation#849

Merged
fklassen merged 1 commit intoappneta:4.5.0from
ChenQi1989:cross
Jun 3, 2024
Merged

configure.ac: do not run conftest in case of cross compilation#849
fklassen merged 1 commit intoappneta:4.5.0from
ChenQi1989:cross

Conversation

@ChenQi1989
Copy link
Copy Markdown
Contributor

It'll give us nothing but error like below:

./conftest: cannot execute binary file: Exec format error
...
./configure: line 23950: test: -eq: unary operator expected

The version check only has effect on Apple systems. We'd better avoid error like above when cross compilation.

Also, in case of cross compilation, instead of having the above Exec format error and resulting in unaligned_cv_fail to yes, set it directly to yes.

It'll give us nothing but error like below:

  ./conftest: cannot execute binary file: Exec format error
  ...
  ./configure: line 23950: test: -eq: unary operator expected

The version check only has effect on Apple systems. We'd better
avoid error like above when cross compilation.

Also, in case of cross compilation, instead of having the above
Exec format error and resulting in unaligned_cv_fail to yes, set
it directly to yes.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
@fklassen fklassen self-assigned this Jun 3, 2024
@fklassen fklassen changed the base branch from master to 4.5.0 June 3, 2024 00:32
@fklassen fklassen merged commit a7aab40 into appneta:4.5.0 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants