Re: Relocatable libraries in windows

Dear haskell rascals, In an attempt to create a relocatable repository of development tools, I created this simple script to configure/build/install packages from hackageDB. This script is meant to be used in an 'msys' environment on a windows machine. To quote the Cabal User's Guide (sec 4.1.2.3)
A library cannot (currently) be prefix-independent, because it will be linked into an executable whose file system location bears no relation to the library package
So far, this attempt has been successful for me. Improvements, criticism, and other solutions are welcome. Thanks. jake

Here is the script.
#!/bin/sh
# mkhslib
# This function should unroll a hackageDB tarball,
# configure it, build it, install it (in a relocatable way)
# and then clean up after itself.
# Assumption1: run in 'msys' environment on windows machine
# Assumption2: User installed GHC with Haskell Platform installer
# Warning: This script assumes there are no spaces in the paths
# used. If there are spaces, then this may break. Space-safe
# mods are welcome.
Dear haskell rascals, In an attempt to create a relocatable repository of development tools, I created this simple script to configure/build/install packages from hackageDB. This script is meant to be used in an 'msys' environment on a windows machine.
To quote the Cabal User's Guide (sec 4.1.2.3)
A library cannot (currently) be prefix-independent, because it will be linked into an executable whose file system location bears no relation to the library package
So far, this attempt has been successful for me. Improvements, criticism, and other solutions are welcome. Thanks.
jake
participants (1)
-
Jake Foell