On Apr 5, 7:11 pm, Jason Moxham <ja...@njkfrudils.plus.com> wrote:
> There doesn't seem to be an easy way to this.
>
> I can do another hack for OSX , but then we will need another hack for cygwin,
> and for each system which names it libraries differently, and looking at
> libtool there are quite a few.
>
> The libtool --mode=install    option doesn't have a option for renaming :(
>
> Want I've done is to duplicate the the definitions,dependences of libmpir to
> another library libgmp . This seems to work. And it's only 19 extra lines in
> Makefile.am , and we can remove the previous hack which was 21 lines.
>
> I've svn'ed into mpir-1.0.0 branch

Hi Jason:

This patch works for me and will also fix the issue on Cygwin, but I
will check out what you did in svn :)

Index: Makefile.am
===================================================================
--- Makefile.am (revision 1853)
+++ Makefile.am (working copy)
@@ -329,9 +329,9 @@
        (cd $(DESTDIR)$(libdir) && rm -f libgmp.la         && $(LN_S)
libmpir.la         libgmp.la)
 endif
 if ENABLE_SHARED
-       (cd $(DESTDIR)$(libdir) && rm -f libgmp.so         && $(LN_S)
libmpir.so         libgmp.so)
-       (cd $(DESTDIR)$(libdir) && rm -f libgmp.so.3       && $(LN_S)
libmpir.so.3       libgmp.so.3)
-       (cd $(DESTDIR)$(libdir) && rm -f libgmp.so.3.4.1   && $(LN_S)
libmpir.so.3.4.1   libgmp.so.3.4.1)
+       (cd $(DESTDIR)$(libdir) && rm -f libgmp.${shared_ext}         && $
(LN_S) libmpir.${shared_ext}         libgmp.${shared_ext})
+       (cd $(DESTDIR)$(libdir) && rm -f libgmp.${shared_ext}.3       && $
(LN_S) libmpir.${shared_ext}.3       libgmp.${shared_ext}.3)
+       (cd $(DESTDIR)$(libdir) && rm -f libgmp.${shared_ext}.3.4.1   && $
(LN_S) libmpir.${shared_ext}.3.4.1   libgmp.${shared_ext}.3.4.1)
 endif
 if WANT_CXX
 if ENABLE_STATIC
@@ -339,9 +339,9 @@
        (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.la       && $(LN_S)
libmpirxx.la       libgmpxx.la)
 endif
 if ENABLE_SHARED
-       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.so       && $(LN_S)
libmpirxx.so       libgmpxx.so)
-       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.so.3     && $(LN_S)
libmpirxx.so.3     libgmpxx.so.3)
-       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.so.3.1.1 && $(LN_S)
libmpirxx.so.3.1.1 libgmpxx.so.3.1.1)
+       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.{shared_ext}       && $
(LN_S) libmpirxx.{shared_ext}       libgmpxx.{shared_ext})
+       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.{shared_ext}.3     && $
(LN_S) libmpirxx.{shared_ext}.3     libgmpxx.{shared_ext}.3)
+       (cd $(DESTDIR)$(libdir) && rm -f libgmpxx.{shared_ext}.3.1.1 && $
(LN_S) libmpirxx.{shared_ext}.3.1.1 libgmpxx.{shared_ext}.3.1.1)
 endif
 endif
 endif


Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to