|
From: Daan L. <daa...@xs...> - 2004-03-03 14:24:35
|
Gour wrote:
>> This is easily solved by giving the "--prefix" option to configure. See
>> the "building" page on the wxHaskell website. (wxhaskell normally installs
>> whereever you install wxWidgets).
>
> The point is that Gentoo has a concept of "safe sandbox" i.e. building process
> is done in temporary directory and if successful, it installs (emerges) into
> real directory.
>
> wxhaskell installs in /usr/bin (by default), so I had to add an option to allow
> wxhaskell ebuild to write directly into /usr/lib which is not safe in case
> something goes wrong since files in /usr/lib can be overwritten.
>
> I tried by patching configure & config/config.mk scripts to overcome LIBDIR
> entry.
You don't have to do that. If you give "--prefix" to configure it will work fine.
You can also give "--libdir" explicitly. When you specify "--help" at the end of
the options, you get a nice overview of all settings that will be used.
All the best,
Daan.
-------------------------------------------------
> ./configure --prefix=/usr/sandbox --help
usage:
./configure [options]
options: [defaults in brackets]
--help show this information
--hc=<program> the haskell compiler [ghc]
--hcpkg=<program> package compiler [ghc-pkg]
--package-conf=<file> optional local package configuration []
--version=<version> library version [0.6]
install options:
--prefix=<dir> platform independent install directory [/usr/sandbox] <--- LOOK HERE
--exec-prefix=<dir> platform dependent install directory [<prefix>]
--libdir=<dir> library files install directory [<exec-prefix>/lib] <--- AND HERE
--enable-strip remove symbols from the libraries [no]
--enable-upx compress the dynamic libraries with upx [no]
documentation options:
--username=<name> username on sourceforge [dleijen]
--haddock=<program> haddock documentation tool [haddock]
wxwindows options:
--wx-lib=<library> wxWindows library [/usr/local/lib/wx_base-2.5.dll]
--wx-toolkit=<name> wxWindows gui toolkit [MSW]
--wx-config=<program> wxWindows configure script (must be the first option!)
[wx-config]
platform options:
--dllext=<extension> dynamic link library extension [.dll]
--libprefix=<prefix> library prefix []
--extra-ld-opts=<opts> extra link options []
--with-msc compile wxWindows and wxc with microsoft vc++ [no]
--wxc-libname=<name> wxc library name [wxc]
|