patch by Bruce Guenter http://bugs.gentoo.org/124692 http://bugs.gentoo.org/124809 --- libtommath-0.36/makefile.shared +++ libtommath-0.36/makefile.shared @@ -81,11 +81,13 @@ bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o $(LIBNAME): $(OBJECTS) - libtool --mode=link gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) - libtool --mode=link gcc *.o -o $(LIBNAME_S) - ranlib $(LIBNAME_S) - libtool --mode=install install -c $(LIBNAME) $(LIBPATH)/$@ + libtool --mode=link --tag=CC gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) + libtool --mode=link --tag=CC gcc *.o -o $(LIBNAME_S) + +install: $(LIBNAME) $(HEADERS) + install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) + libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME) install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) test: $(LIBNAME) demo/demo.o