Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make -linkall applicable to single compilation units #1009
At library construction time (
The present pull request extends this behavior to single objects / compilation units. Compiling with
This new behavior can be useful for libraries that contain one compilation unit that performs important initializations (e.g. for a mixed OCaml/C library, initializing global data structures on the C side) and other units that don't:
This pull request just introduces the mechanism. If it is judged favorably, we'll see about using it to make some of the otherlibs/ more robust w.r.t. initialization.
@xavierleroy, could you add a Changes entry? (This makes sense as a user-facing change). I think the category "Compiler user-interface and warnings" would be a good choice.
Another thing that would be useful is to port the manual change you made to the man pages
You ended up with a commit from trunk in the branch, I'm not sure how. (I think to rebase a branch the most natural process is to first update your trunk with