--- config/XView.rules.orig 2005-03-28 06:40:20.000000000 -0800 +++ config/XView.rules 2012-02-02 15:51:23.012928640 -0800 @@ -229,7 +229,7 @@ $(RM) $@~ sodir/lib/**/libname.so.xs.o @@\ @if [ -f xstrings ]; then \ @@\ $(RM) strings; $(CP) xstrings strings; fi @@\ - (cd sodir; $(LD) -o ../$@~ $(SHLIBLDFLAGS) ?*.o) @@\ + (cd sodir; $(CC) -o ../$@~ -Wl,-soname,$@ $(SHLIBLDFLAGS) ?*.o) @@\ -@if [ -f strings~ ]; then $(RM) strings~; else exit 0; fi @@\ $(RM) $@ @@\ $(MV) $@~ $@ @@\ @@ -265,7 +265,8 @@ @if [ -f xstrings ]; then \ @@\ $(RM) strings; $(CP) xstrings strings; fi @@\ -@if [ ! -x objsort ];then $(CHMOD) 755 objsort;else exit 0;fi @@\ - $(LD) `objsort objlist sodir` -o $@~ $(SHLIBLDFLAGS) @@\ + $(CC) `objsort objlist sodir` -o $@~ -Wl,-soname,$@\ @@\ + $(SHLIBLDFLAGS) @@\ @if [ -f strings~ ]; then $(RM) strings~; else exit 0; fi @@\ $(RM) $@ @@\ $(MV) $@~ $@ @@\ @@ -557,9 +558,9 @@ #else /* __linux__ */ #define InstallSharedLibraryNoBuild(libname,rev,dest) @@\ install:: @@\ - $(RM) $(DESTDIR)dest/lib/**/libname.so @@\ + $(RM) /dest/lib/**/libname.so @@\ $(INSTALL) -c $(INSTSHAREDLIBFLAGS) lib/**/libname.so.rev $(DESTDIR)dest @@\ - (cd $(DESTDIR)dest && $(LN) lib/**/libname.so.rev lib/**/libname.so) @@\ + (cd dest; $(LN) lib/**/libname.so.rev lib/**/libname.so) #endif /* !__linux__ */ #endif /* InstallSharedLibraryNoBuild */