cannot build dynamic modules with Sun CC
David Champion
dgc@uchicago.edu
Wed Jun 12 20:41:01 2002
--q9KOos5vDmpwPx9o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
I gave this patch a couple of years ago but it seems to have been lost
during some recategorization in configure.ac's DYNLINK_MOD_CFLAGS code.
I don't know whether -G works (or is needed) for IRIX or OSF Tru-UX
compilers. I don't have access to those anymore. You might want to
separate out the Solaris case, unless someone on a Digital or SGI
platform can confirm.
Oh, my mistake. The patched code is still there, it just got separated
from the Solaris case for which it was written. :)
--
-D. dgc@uchicago.edu NSIT University of Chicago
--q9KOos5vDmpwPx9o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gnupg-1.0.7.dgc.dynlink.patch"
diff -Pur gnupg-1.0.7.orig/configure.ac gnupg-1.0.7/configure.ac
--- gnupg-1.0.7.orig/configure.ac Mon Apr 29 09:56:08 2002
+++ gnupg-1.0.7/configure.ac Wed Jun 12 13:27:20 2002
@@ -360,8 +360,14 @@
;;
*-solaris* | *-irix* | *-dec-osf* )
- DYNLINK_MOD_CFLAGS="-shared $CFLAGS_PIC"
- ;;
+ # -shared is a gcc-ism. Find pic flags from GNUPG_CHECK_PIC.
+ if test -n "$GCC" ; then
+ DYNLINK_MOD_CFLAGS="-shared $CFLAGS_PIC"
+ else
+ DYNLINK_MOD_CFLAGS="-G $CFLAGS_PIC"
+ fi
+
+;;
*)
# -shared is a gcc-ism. Find pic flags from GNUPG_CHECK_PIC.
--q9KOos5vDmpwPx9o--