File sourcenav-5.1.4-gcc.patch of Package Source-Navigator

--- itcl/itcl/unix/configure
+++ itcl/itcl/unix/configure
@@ -1113,7 +1113,7 @@
 fi
 # CYGNUS LOCAL - use -fwritable-strings with gcc, needed for Tcl8.1
 if test "$itcl_cv_prog_gcc" = "yes" ; then
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
 fi
 
 echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
--- itcl/itcl/unix/configure.in
+++ itcl/itcl/unix/configure.in
@@ -122,7 +122,7 @@
 fi
 # CYGNUS LOCAL - use -fwritable-strings with gcc, needed for Tcl8.1
 if test "$itcl_cv_prog_gcc" = "yes" ; then
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
 fi
 
 AC_MSG_CHECKING([default compiler flags])
--- itcl/itk/unix/configure
+++ itcl/itk/unix/configure
@@ -1173,7 +1173,7 @@
     # that they obscure everything else.
     # CYGNUS LOCAL - add -fwritable-strings to CFLAGS for gcc.  Needed 
     # with Tcl8.1
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall -Wno-implicit-int"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall -Wno-implicit-int"
 fi
 
 echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
--- itcl/itk/unix/configure.in
+++ itcl/itk/unix/configure.in
@@ -162,7 +162,7 @@
     # that they obscure everything else.
     # CYGNUS LOCAL - add -fwritable-strings to CFLAGS for gcc.  Needed 
     # with Tcl8.1
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall -Wno-implicit-int"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall -Wno-implicit-int"
 fi
 
 AC_MSG_CHECKING([default compiler flags])
--- libgui/configure
+++ libgui/configure
@@ -1922,7 +1922,7 @@
 # Tcl8.1 requires writable strings for gcc
 
 if test "$GCC" = "yes"; then
-   LIBGUI_CFLAGS=-fwritable-strings
+   LIBGUI_CFLAGS=
 else
    LIBGUI_CFLAGS=
 fi
--- libgui/configure.in
+++ libgui/configure.in
@@ -46,7 +46,7 @@
 # Tcl8.1 requires writable strings for gcc
 
 if test "$GCC" = "yes"; then
-   LIBGUI_CFLAGS=-fwritable-strings
+   LIBGUI_CFLAGS=
 else
    LIBGUI_CFLAGS=
 fi
--- libgui/src/tclhelp.c
+++ libgui/src/tclhelp.c
@@ -589,7 +589,7 @@
   if (pidProcess == 0)
     {
     /* new child process */
-    execl("/bin/csh", "/bin/csh", shellFile, html_filename, 0);
+    execl("/bin/csh", "/bin/csh", shellFile, html_filename, (char*)NULL);
     /* execl only returns if error occurred */
      _exit(-1);
     }
--- snavigator/configure
+++ snavigator/configure
@@ -1369,7 +1369,7 @@
 
 if test x$ide_cv_os_cygwin32 = xyes ||
        test x$sn_cv_os_mingw32 = xyes ; then
-   HYPER_CFLAGS="-Wall -fwritable-strings"
+   HYPER_CFLAGS="-Wall"
 fi
  
 
--- snavigator/configure.in
+++ snavigator/configure.in
@@ -153,7 +153,7 @@
 
 if test x$ide_cv_os_cygwin32 = xyes ||
        test x$sn_cv_os_mingw32 = xyes ; then
-   HYPER_CFLAGS="-Wall -fwritable-strings"
+   HYPER_CFLAGS="-Wall"
 fi
 AC_SUBST(HYPER_CFLAGS) 
 
--- tix/unix/tk8.1/Makefile.in
+++ tix/unix/tk8.1/Makefile.in
@@ -46,7 +46,7 @@
 # To change the compiler switches, for example to change from -O
 # to -g, change the following line:
 CFLAGS = -O
-TIX_CFLAGS = $(CFLAGS) -fwritable-strings
+TIX_CFLAGS = $(CFLAGS)
 
 # To disable ANSI-C procedure prototypes reverse the comment characters
 # on the following lines:
--- tix/unix/tk8.3/Makefile.in
+++ tix/unix/tk8.3/Makefile.in
@@ -46,7 +46,7 @@
 # To change the compiler switches, for example to change from -O
 # to -g, change the following line:
 CFLAGS = -O
-TIX_CFLAGS = $(CFLAGS) -fwritable-strings
+TIX_CFLAGS = $(CFLAGS)
 
 # To disable ANSI-C procedure prototypes reverse the comment characters
 # on the following lines:
openSUSE Build Service is sponsored by