Skip to content

Set relative path of library directory to binary directory when installing mlton script #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 15, 2018

Conversation

MatthewFluet
Copy link
Member

Some systems (e.g., x86_64 Fedora) want to install the library files in /usr/lib64, rather than /usr/lib. Thus, when installing it is necessary to compute and set the relative path of TLIB to TBIN when installing $(TBIN)/mlton.

Some systems (e.g., x86_64 Fedora) will set `libdir` to `/usr/lib64`, so it is
necessary to compute and set the relative path from `TBIN` to `TLIB` when
installing `$(TBIN)/mlton`.  (For robustness, also compute and set the relative
path from `BIN` to `LIB` when installing `$(BIN)/mlton`.)

While GNU `realpath` would suffice, it does not exist on MacOS (and
other *BSD?).  A small, probably not entirely robust, shell command is
constructed to compute relative paths.
See a3cccd8.

Some systems (e.g., x86_64 Fedora) will set `libdir` to `/usr/lib64`, so it is
necessary to compute and set the relative path from `TBIN` to `TLIB` when
installing `$(TBIN)/mlton`.

While GNU `realpath` would suffice, it does not exist on MacOS (and
other *BSD?).  A small, probably not entirely robust, shell command is
constructed to compute relative paths.
@MatthewFluet MatthewFluet merged commit 2c1fb99 into MLton:master Feb 15, 2018
@MatthewFluet MatthewFluet deleted the nonstandard-lib-rel-bin branch February 15, 2018 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant