Skip to content
Snippets Groups Projects

configure: luac: autodetect host if not provided

Open Khalid Masum requested to merge Labnann/vlc:luac-notfound-fix into master
2 unresolved threads

When building the luac contrib, it is built at $(PREFIX)/../bin/$(cc -dumpmachine)-luac

When configuring, if --host is not provided, the script looks for luac at $(PREFIX)/../bin/-luac as $host_alias is empty, failing to lookup luac.

Use (cc -dumpmachine) to look for the LUA byte compiler when host is not provided.

Edited by Khalid Masum

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Steve Lhomme
  • Khalid Masum added 1 commit

    added 1 commit

    • 8035011d - configure: luac: autodetect host if not provided

    Compare with previous version

  • The elephant in the room which this is ignoring, is that you really should not use contribs without an explicit --host.

    • Given contribs use dumpmachine unless the triplet is forced, this should work (exactly) the same here. So the equivalent is that if host_alias is set we use that, otherwise dumpmachine. So the path looks correct to me.

      However as pointed out in !5386 (comment 438037) the contrib dir location also should involves this logic. So IMO it should be moved up there.

    • You are assuming that BUILDCC matches, which itself requires that host matches.

      IMO it is much saner to assume that host matches than that BUILDCC matches.

    • It's always better if the host is the knowingly by the user. As I cross compile all the time, that's a given. However Linux users probably expect to run ./configure with no particular flag to just work. If they build contribs either it's in the proper place or they need to use --with-contrib. At that point I think it's fair to assume they can provide a host as well, and we could just decide to support contribs only when --host is set.

    • Please register or sign in to reply
  • Steve Lhomme changed milestone to %4.0

    changed milestone to %4.0

  • Khalid Masum added 1 commit

    added 1 commit

    • a3f544cb - configure: luac: use host variable from with-contrib processing

    Compare with previous version

  • Steve Lhomme approved this merge request

    approved this merge request

  • **** added MRStatus::Stale label and removed MRStatus::InReview label

    added MRStatus::Stale label and removed MRStatus::InReview label

  • Please register or sign in to reply
    Loading