KDE compiles using icc 6.0

Allan Sandfeld Jensen snowwolf at one2one-networks.com
Sat May 18 20:24:23 BST 2002


Atleast kdelibs and arts does, if you apply the included patch ;-)

There is a problem with configure in kdebase.
The test of xmkmf fails:
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
icc: Command line error: no files specified; for help type "icc -help"

Apparently icc produces an error when no files are specified, where gcc only 
gives a warning. Does anyone know how to fix the imake-files?


Index: libtool.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/libtool.m4.in,v
retrieving revision 1.73
diff -u -3 -p -r1.73 libtool.m4.in
--- libtool.m4.in	2002/05/16 18:16:13	1.73
+++ libtool.m4.in	2002/05/18 19:16:09
@@ -2364,7 +2364,7 @@ compiler="[$]2"
 _LT_AC_TAGVAR(compiler, $1)=$CC
 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
-# We don't want -fno-exception wen compiling C++ code, so set the
+# We don't want -fno-exception when compiling C++ code, so set the
 # no_builtin_flag separately
 if test "$GXX" = yes; then
   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
@@ -2710,6 +2710,17 @@ case $host_os in
 	# dependencies.
 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 
2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld 
.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) 
list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 	;;
+      icc|icpc)
+	# Intel C++
+	# -Tused tells icpc to instantiate all used templates.
+	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -Tused $predep_objects $libobjs 
$deplibs $postdep_objects $compiler_flags ${wl}-soname,$soname -o $lib'
+	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs 
$deplibs $postdep_objects $compiler_flags ${wl}-soname,$soname  -o $lib 
${wl}-retain-symbols-file,$export_symbols'
+	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+
+	runpath_var=LD_RUN_PATH
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+	;;
     esac
     ;;
   lynxos*)
@@ -4021,6 +4032,12 @@ AC_MSG_CHECKING([for $compiler option to
 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 	    ;;
+	  icc|icpc)
+	    # Intel C++
+	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption,ld,'
+	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+	    ;;
 	  *)
 	    ;;
 	esac
@@ -4218,6 +4235,26 @@ AC_MSG_CHECKING([for $compiler option to
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
       ;;
 
+    linux*)
+      case $cc_basename in
+	cxx)
+	  # Compaq C++
+	  # Make sure the PIC flag is empty.  It appears that all Alpha
+	  # Linux and Compaq Tru64 Unix objects are PIC.
+	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+	  ;;
+	icc|icpc)
+	  # Intel C++
+	  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption,ld,'
+	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+	  ;;
+	*)
+	  ;;
+      esac
+      ;;
+
     newsos6)
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -5036,7 +5073,7 @@ fi
 #
 # Do we need to explicitly link libc?
 #
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 if test "$enable_shared" = yes && test "$GCC" = yes; then
   case $_LT_AC_TAGVAR(archive_cmds, $1) in
   *'~'*)




More information about the kde-core-devel mailing list