INSTALL_PREFIX, INSTALL_LIBDIR

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

INSTALL_PREFIX, INSTALL_LIBDIR

Free Pascal - General mailing list
Hi,

How to control where 'make install' puts the libraries (e.g.
libpas2js.so)?

I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything *except*
libraries to "~/tmp/lib64".

See bug https://bugs.freepascal.org/view.php?id=34346


Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: INSTALL_PREFIX, INSTALL_LIBDIR

Christo Crause
On 2018/10/18 09:26, Mattias Gaertner via fpc-pascal wrote:
> How to control where 'make install' puts the libraries (e.g.
> libpas2js.so)?
>
> I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything *except*
> libraries to "~/tmp/lib64".
>
> See bug https://bugs.freepascal.org/view.php?id=34346

In trunk (rev. 39838):

"make info FPC=[path to ppcx64]" gives:

Install base dir..... /usr/local/lib/fpc/3.3.1
Install binary dir... /usr/local/bin
Install library dir.. /usr/local/lib
Install units dir.... /usr/local/lib/fpc/3.3.1/units/x86_64-linux/fpc

"make info INSTALL_PREFIX=/xxx FPC=[path to ppcx64]" gives:

Install base dir..... /xxx/lib/fpc/3.3.1
Install binary dir... /xxx/bin
Install library dir.. /xxx/lib
Install units dir.... /xxx/lib/fpc/3.3.1/units/x86_64-linux/fpc

"make info INSTALL_PREFIX=/xxx INSTALL_LIBDIR=/yyy FPC=[path to ppcx64]"
gives:

Install base dir..... /xxx/lib/fpc/3.3.1
Install binary dir... /xxx/bin
Install library dir.. /yyy
Install units dir.... /xxx/lib/fpc/3.3.1/units/x86_64-linux/fpc

This seems different to your case.  Which version of FPC are you using?

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: INSTALL_PREFIX, INSTALL_LIBDIR

Christo Crause


On Fri, 19 Oct 2018, 16:40 christo, <[hidden email]> wrote:
On 2018/10/18 09:26, Mattias Gaertner via fpc-pascal wrote:
> How to control where 'make install' puts the libraries (e.g.
> libpas2js.so)?
>
> I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything *except*
> libraries to "~/tmp/lib64".
>
> See bug https://bugs.freepascal.org/view.php?id=34346

In trunk (rev. 39838):

"make info FPC=[path to ppcx64]" gives:

Hang on, the packages and utilities are installed with fpmake, so one also has to figure out how fpmake handles the - - prefix and - - baseinstalldir parameters...

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: INSTALL_PREFIX, INSTALL_LIBDIR

Free Pascal - General mailing list
In reply to this post by Christo Crause
On Fri, 19 Oct 2018 16:40:19 +0200
christo <[hidden email]> wrote:

> On 2018/10/18 09:26, Mattias Gaertner via fpc-pascal wrote:
> > How to control where 'make install' puts the libraries (e.g.
> > libpas2js.so)?
> >
> > I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything
> > *except* libraries to "~/tmp/lib64".
> >
> > See bug https://bugs.freepascal.org/view.php?id=34346 
>
> In trunk (rev. 39838):
>
> "make info FPC=[path to ppcx64]" gives:
>
> Install base dir..... /usr/local/lib/fpc/3.3.1
> Install binary dir... /usr/local/bin
> Install library dir.. /usr/local/lib
> Install units dir.... /usr/local/lib/fpc/3.3.1/units/x86_64-linux/fpc
>
> "make info INSTALL_PREFIX=/xxx FPC=[path to ppcx64]" gives:
>
> Install base dir..... /xxx/lib/fpc/3.3.1
> Install binary dir... /xxx/bin
> Install library dir.. /xxx/lib
> Install units dir.... /xxx/lib/fpc/3.3.1/units/x86_64-linux/fpc
>
> "make info INSTALL_PREFIX=/xxx INSTALL_LIBDIR=/yyy FPC=[path to
> ppcx64]" gives:
>
> Install base dir..... /xxx/lib/fpc/3.3.1
> Install binary dir... /xxx/bin
> Install library dir.. /yyy
> Install units dir.... /xxx/lib/fpc/3.3.1/units/x86_64-linux/fpc
>
> This seems different to your case.  Which version of FPC are you
> using?

With FPC source 3.3.1 and installed fpc 3.0.4 I get:
make info INSTALL_PREFIX=~/tmp/fpc INSTALL_LIBDIR=~/tmp/lib64

Install base dir..... /home/mattias/tmp/fpc/lib/fpc/3.0.4
Install binary dir... /home/mattias/tmp/fpc/bin
Install library dir.. /home/mattias/tmp/lib64
Install units
dir.... /home/mattias/tmp/fpc/lib/fpc/3.0.4/units/x86_64-linux/fpc
Install source dir... /home/mattias/tmp/fpc/share/src/fpc-3.0.4/fpc
Install doc dir...... /home/mattias/tmp/fpc/share/doc/fpc-3.0.4/fpc
Install example
dir.. /home/mattias/tmp/fpc/share/doc/fpc-3.0.4/fpc/examples Install
data dir..... /home/mattias/tmp/fpc/lib/fpc/3.0.4

make install INSTALL_PREFIX=~/tmp/fpc INSTALL_LIBDIR=~/tmp/lib64

The ppu files of rtl are installed under
~/tmp/fpc/lib/fpc/3.3.1/units/x86_64-linux/rtl/

While all other ppu files are installed under
~/tmp/lib64/fpc/3.3.1/units/x86_64-linux/

libpas2jslib.so is installed under
~/tmp/fpc/lib/libpas2jslib.so

IMO that is not useful aka a bug.

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal