문제

My Makfile is using libtool in order to create some apache modules.

Unfortunately I need my makefile to work on a VMWare shared forlder (hgfs), which does not support any kind of links (symbolic or hard links).

Can I use libtool and have it use cp instead of ln -s, WITHOUT patching the LN_ST variable in the script, and thus breaking libtool for the rest of the system while preventing future upgrades to libtool?

도움이 되었습니까?

해결책

http://www.sourceware.org/autobook/autobook/autobook_220.html

ln

Not all systems support soft links. You should use the Autoconf macro `AC_PROG_LN_S' to discover what the target architecture supports, and assign the result of that test to a variable. Whenever you subsequently need to create a link you can use the command stored in the variable to do so.

LN_S=@LN_S@
...
$LN_S $top_srcdir/foo $dist_dir/foo

Also, you cannot rely on support for the `-f' option from all implementations of ln. Use rm before calling ln instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top