LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Makefile to not default directories (http://www.linuxquestions.org/questions/linux-software-2/makefile-to-not-default-directories-812037/)

TheSergon13 06-03-2010 06:59 PM

Makefile to not default directories
 
Hi :)

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

./configure
make
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,
SÚrgio

exvor 06-03-2010 07: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 04: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 07:14 PM.