cannot build dynamic modules with Sun CC

David Champion dgc at uchicago.edu
Wed Jun 12 21:41:01 CEST 2002


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 at uchicago.edu	NSIT	University of Chicago
-------------- next part --------------
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.


More information about the Gnupg-devel mailing list