-   Linux - Software (
-   -   Makefile to not default directories (

TheSergon13 06-03-2010 07:59 PM

Makefile to not default directories
Hi :)

I'm compiling some applications in a pc, using:

make install

but I want to run the applications in another pc, so I have used the option --prefix=/some/directory/ when executing ./configure, so I could just copy this folder to the other pc. However, my programs now need to have libraries and shared files in the same location that I used with --prefix, instead of /lib, /usr, etc.

Is there any solution to avoid this? probably in make install command?

Thanks in advance,

exvor 06-03-2010 08:10 PM

if the configure command has the ability to make a static binary then you will not have to worry about library dependancies

TheSergon13 06-04-2010 05:48 AM

Thank you exvor,
but this only will solve my problem about libraries, not with auxiliary files that my application needs :)

I want to make it think it will be installed on its default directories, but not on my pc.

All times are GMT -5. The time now is 06:13 PM.