--- gmp-4.1/configure.orig 2002-10-13 07:16:32.000000000 -0700 +++ gmp-4.1/configure 2002-10-13 07:16:43.000000000 -0700 @@ -10702,6 +10702,28 @@ ;; esac ;; + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[012]) + allow_undefined_flag='-undefined suppress' + ;; + *) # Darwin 1.3 on + allow_undefined_flag='-flat_namespace -undefined suppress' + ;; + esac + + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds_CXX='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' + # We need to add '_' to the symbols in $export_symbols first + #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' + hardcode_direct=yes + hardcode_shlibpath_var=no + whole_archive_flag_spec='-all_load $convenience' + ;; + dgux*) case $cc_basename in ec++) --- gmp-4.1/ltmain.sh.orig 2002-10-15 08:27:27.000000000 -0700 +++ gmp-4.1/ltmain.sh 2002-10-15 08:28:36.000000000 -0700 @@ -4445,10 +4445,10 @@ # Directory that this library needs to be installed in: libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $echo >> $output "\ -relink_command=\"$relink_command\"" - fi +# if test "$installed" = no && test "$need_relink" = yes; then +# $echo >> $output "\ +#relink_command=\"$relink_command\"" +# fi done fi diff -ruN gmp-4.1.4/tests/cxx/Makefile.in gmp-4.1.4-patched/tests/cxx/Makefile.in --- gmp-4.1.4/tests/cxx/Makefile.in 2004-09-22 13:26:19.000000000 -0700 +++ gmp-4.1.4-patched/tests/cxx/Makefile.in 2005-10-01 22:21:05.000000000 -0700 @@ -142,7 +142,7 @@ $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la -@WANT_CXX_TRUE@check_PROGRAMS = t-cast t-headers t-ostream t-locale t-constr t-expr +@WANT_CXX_TRUE@check_PROGRAMS = t-cast t-headers t-ostream t-constr t-expr @WANT_CXX_TRUE@TESTS = $(check_PROGRAMS) t_cast_SOURCES = t-cast.cc @@ -156,7 +156,7 @@ CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = @WANT_CXX_TRUE@check_PROGRAMS = t-cast$(EXEEXT) t-headers$(EXEEXT) \ -@WANT_CXX_TRUE@ t-ostream$(EXEEXT) t-locale$(EXEEXT) \ +@WANT_CXX_TRUE@ t-ostream$(EXEEXT) \ @WANT_CXX_TRUE@ t-constr$(EXEEXT) t-expr$(EXEEXT) @WANT_CXX_FALSE@check_PROGRAMS = am_t_cast_OBJECTS = t-cast.$(OBJEXT)