patch for using GNU linker with sparc-sun-solaris2.*

Marcus G. Daniels mgd@swarm.org
25 Jan 2000 17:31:42 -0800


diff -c -r1.159 configure.in
*** configure.in	2000/01/21 16:49:18	1.159
--- configure.in	2000/01/26 01:25:37
***************
*** 583,590 ****
--- 582,594 ----
      shlibldflags="-shared"
      ;;
    *solaris*)
+     shlibldflags="-G"
      if test "${GCC}" = yes; then
        cpicflags=-fPIC
+       if `$CC -print-prog-name=ld` -v | grep GNU > /dev/null; then
+         shlibldflags=-shared
+         dllflags=-Wl,--export-dynamic
+       fi
      else
        cpicflags=-KPIC
      fi
***************
*** 593,599 ****
      else
        fpicflags=-PIC
      fi
-     shlibldflags="-G"
      ;;
  esac
  
--- 597,602 ----
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._