After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 797296 - libvpx: fails to configure for cross-android building on macos
libvpx: fails to configure for cross-android building on macos
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
git master
Other Mac OS
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-10-17 01:24 UTC by Justin Kim
Modified: 2018-10-27 09:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
config.log (49.69 KB, application/octet-stream)
2018-10-17 01:24 UTC, Justin Kim
  Details
libvpx: Move LDFLAGS to target platform for Darwin (1.24 KB, patch)
2018-10-17 01:29 UTC, Justin Kim
none Details | Review
libvpx: Move LDFLAGS to target platform for Darwin/IOS (957 bytes, patch)
2018-10-24 10:35 UTC, Justin Kim
committed Details | Review

Description Justin Kim 2018-10-17 01:24:34 UTC
Created attachment 373946 [details]
config.log

When Android cross-building on Mac OS X, it fails to configure because of wrong LDFLAGS. See the attached config.log. The below is a capture log from terminal, but config.log has more hint.

```
Configuring for target 'arm64-android-gcc'
  enabling arm64
  enabling neon
  enabling realtime_only
  enabling webm_io
  enabling libyuv
Toolchain is unable to link executables

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.
```
Comment 1 Justin Kim 2018-10-17 01:29:00 UTC
Created attachment 373947 [details] [review]
libvpx: Move LDFLAGS to target platform for Darwin
Comment 2 Edward Hervey 2018-10-22 06:14:22 UTC
That fix isn't quite correct. We need to use those special flags when targetting both osx *and* ios
Comment 3 Justin Kim 2018-10-24 10:35:20 UTC
Created attachment 374026 [details] [review]
libvpx: Move LDFLAGS to target platform for Darwin/IOS

Checking target platforms would work.
Comment 4 Sebastian Dröge (slomo) 2018-10-27 09:44:37 UTC
commit 268831128130de66a02bc4f67d0be8128003dfe3 (HEAD -> master)
Author: Justin Kim <jeongseok.kim@sk.com>
Date:   Wed Oct 17 10:21:56 2018 +0900

    libvpx: Use libc++ also on iOS
    
    https://bugzilla.gnome.org/show_bug.cgi?id=797296