On Sunday, June 16, 2002, at 11:55  AM, Max Horn wrote:

> At 13:08 Uhr -0400 15.06.2002, David R. Morrison wrote:
>> Regarding your report for failure for the newest readline package:
>>
>> the package should compile on 10.1 with gcc2 (or the old developer 
>> tools),
>> or on 10.2 with gcc3.  It won't compile on 10.1 with gcc3.
>
> Just out of curiosity, why won't it compile with gcc3 on 10.1?

Hi, I'm new to the list, but I was investigating this very question 
as I'm trying to compile as much as possible with gcc3. The shared 
library needs to be linked with libcc_dynamic.a in all cases, not 
just for Darwin 6. It's not necessary with gcc2 for some reason, but 
it doesn't hurt anything either.

Here's a modified patch file. Someone should make sure it works with 
the December dev tools as well; I only have the April tools 
installed.

--------- CUT HERE ------------
diff -ruN readline-4.2a.orig/support/shobj-conf 
readline-4.2a/support/shobj-conf
--- readline-4.2a.orig/support/shobj-conf       2001-08-23 
13:05:02.000000000 -0400
+++ readline-4.2a/support/shobj-conf    2002-06-16 
11:12:38.000000000 -0400
@@ -115,7 +115,7 @@
         ;;

  # Darwin/MacOS X
-darwin*|macosx*)
+darwin[0-5]*)
         SHOBJ_STATUS=unsupported
         SHLIB_STATUS=supported

@@ -127,9 +127,26 @@
         SHLIB_LIBSUFF='dylib'

         SHOBJ_LDFLAGS='-dynamic'
-       SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name 
$(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) 
-compatibility_version $(SHLIB_MAJOR) -v'
+       SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name 
$(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) 
-compatibility_version $(SHLIB_MAJOR).2 -v'

-       SHLIB_LIBS='-lSystem'
+       SHLIB_LIBS='-lSystem -lcc_dynamic'
+       ;;
+
+darwin6*)
+       SHOBJ_STATUS=unsupported
+       SHLIB_STATUS=supported
+
+       SHOBJ_CFLAGS='-dynamic -fno-common'
+
+       SHOBJ_LD=/usr/bin/libtool
+
+       SHLIB_LIBVERSION='$(SHLIB_MAJOR)$(SHLIB_MINOR).$(SHLIB_LIBSUFF)'
+       SHLIB_LIBSUFF='dylib'
+
+       SHOBJ_LDFLAGS='-dynamic'
+       SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name 
$(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) 
-compatibility_version $(SHLIB_MAJOR).2 -v'
+
+       SHLIB_LIBS='-lSystem -lcc_dynamic  -lncurses'
         ;;

  openbsd*)
--------- CUT HERE ------------

Actually, I'm not sure why there needs to be a separate section for 
Darwin 6. Can't the 10.1 version also be linked to ncurses?

Thanks for all the great work. I love fink! :)
--
Daniel Johnson
[EMAIL PROTECTED]


_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to