Support for --start-group / --end-group when linking native extensions

Open
#940 4 comments 3 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start with Extender's native extension linking path and reproduce the issue using the extension-firebase desktop branch for the x86_64-win32 target. Confirm how required libraries are currently ordered, then verify that the generated link invocation groups them with --start-group and --end-group.

Written by the indexing model from the issue text.

Description

extender

Is your feature request related to a problem? Please describe :
When building a native extension, the order that the required libraries are supplied to the linker can't be controlled, and in particular dependencies can be listed before the library built from the NE source.
See forum post here

Describe the solution you'd like :
Extender wraps the libraries in --start-group / --end-group

Describe alternatives you've considered :
None I can think of.

Additional context :
This branch of extension-firebase can be used to reproduce the problem when building a x86_64-win32 target.

Dominant language
Java
Stars
67
Forks
25
Avg merge
1d 1h
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from defold/extender

All issues in defold/extender

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.