Skip to content
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

Backport "Add --dynlibdir" to 1.24 #4011

Merged
merged 1 commit into from
Oct 20, 2016
Merged

Conversation

christiaanb
Copy link
Collaborator

--dynlibdir indicates the directory in which dynamic libraries
are installed. By default this setting is equal to:

$libdir/$abi

The static libraries will still end up in:

$libdir/$libsubdir

With $libsubdir/$abi as the default directory for dynamic
libraries, dynamic libraries will by default end up in a
single shared directory (per package database). This has the
potential to reduce start-up times for dynamically linked
executable as only one RPATH per package database will be
needed.

This commit uses the functionality defined in

https://phabricator.haskell.org/D2611

to tell GHC's > 8.0.1 package database that dynamic libraries
are copied to the directories mentioned in the

dynamic-library-dirs

field.

@mention-bot
Copy link

@christiaanb, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dcoutts, @23Skidoo and @luite to be potential reviewers.

--dynlibdir indicates the directory in which dynamic libraries
are installed. By default this setting is equal to:

$libdir/$abi

The static libraries will still end up in:

$libdir/$libsubdir

With $libsubdir/$abi as the default directory for dynamic
libraries, dynamic libraries will by default end up in a
single shared directory (per package database). This has the
potential to reduce start-up times for dynamically linked
executable as only one RPATH per package database will be
needed.

This commit uses the functionality defined in

https://phabricator.haskell.org/D2611

to tell GHC's > 8.0.1 package database that dynamic libraries
are copied to the directories mentioned in the

`dynamic-library-dirs`

field.
@christiaanb
Copy link
Collaborator Author

Ok, just talked with @bgamari and @dcoutts, D2611 will be merged today, so I've updated this patch to expect the changes in D2611 to live in GHC 8.0.1.20161021 or later.

@dcoutts
Copy link
Contributor

dcoutts commented Oct 20, 2016

@23Skidoo so actually we have to merge this first, to the 1.24 branch (and probably head too), and then ghc has to update to that before they can merge the ghc patch (D2611), since it depends on the extra field in the InstalledPackageInfo from this patch.

@23Skidoo
Copy link
Member

OK, let's merge both of these and then update the version check if required.

@23Skidoo 23Skidoo merged commit a2b9ced into haskell:1.24 Oct 20, 2016
@23Skidoo
Copy link
Member

Merged, thanks!

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.

4 participants