On Sunday, October 13, 2002, at 06:55 AM, Fred Mesnard wrote:
Hi Justin, hi Martin,
Here are some more info:
I have installed Mac OS X 10.2 + the developer CD + the august update from Apple:
% what /usr/bin/libtool
/usr/bin/libtool
PROGRAM:cctools_misc PROJECT:cctools-435 DEVELOPER:root BUILT:Mon Jul 15 20:25:50 PDT 2002
Not related, totally different thing. libtool comes with the app.
So why are you here? :)I don't have Fink installed, I'm waiting for the next version.
Anyway, i tried adding --enable-cxx to the fink info file's configure. It outputs:
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
..
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
checking whether -lc should be explicitly linked in... yes
It looks like half of GMP's configure script is from an old version of libtool, and half is from the new. Or somethng like that. The whole archive_cmds_CXX is missing for darwin. It has the (updated, with flat namespace) part for flat_namespace, but no archive_cmds_CXX for darwin. It looks like it should work fine if i just copy the archive_cmds to the archive_cmds_CXX. And indeed, it does:
This lets it link:
--- 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++)
So drm, you can add this patch and --enable-cxx to GMP, and we get:
/sw/include/gmpxx.h
/sw/lib/libgmpxx.3.0.2.dylib
/sw/lib/libgmpxx.a
/sw/lib/libgmpxx.la
/sw/lib/libgmpxx.3.dylib
/sw/lib/libgmpxx.dylib
-Ben
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users
