Support gcc-3.4 and crosscompiling on grml64
authorMichael Prokop <mika@grml.org>
Tue, 27 Mar 2007 11:40:54 +0000 (13:40 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 27 Mar 2007 11:40:54 +0000 (13:40 +0200)
debian/changelog
debian/control
grml-terminalserver-config

index ad5e4ac..eb5639a 100644 (file)
@@ -1,3 +1,10 @@
+grml-terminalserver (0.86) unstable; urgency=low
+
+  * Support gcc-3.4 and crosscompiling on grml64. Adjusted Depends
+    corresponding. [Closes: issue175]
+
+ -- Michael Prokop <mika@grml.org>  Tue, 27 Mar 2007 13:33:59 +0200
+
 grml-terminalserver (0.85) unstable; urgency=low
 
   * fix for booting memtest86+ over pxelinux 
index 5c1ea80..5adf2a1 100644 (file)
@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
 
 Package: grml-terminalserver
 Architecture: any
-Depends: grml-shlib (>=1.02.03), grml-terminalserver-data (>=0.62), dialog, dhcp3-server, atftpd (>=0.7.dfsg-1.2), syslinux, gcc-3.3, ipcalc, ash
+Depends: grml-shlib (>=1.02.03), grml-terminalserver-data (>=0.62), dialog, dhcp3-server, atftpd (>=0.7.dfsg-1.2), syslinux, gcc-3.3 | gcc-3.4, ipcalc, ash, libc6-dev-i386 [amd64], ia32-libs [amd64]
 Description: terminalserver for grml
  This software should netboot grml on other computers over the
  network. The terminalserver also works with NON-PXE
index aa45405..9417c86 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Gebetsroither <gebi@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Don Nov 16 14:39:51 CET 2006 [mika]
+# Latest change: Die Mär 27 13:34:47 CEST 2007 [mika]
 ################################################################################
 
 
@@ -529,8 +529,15 @@ title Load config from Tftp server
   configfile (nd)/menu.lst
 EOT
   #execute "./configure --enable-diskless --enable-preset-menu=./preset-menu $cmd_line_" warn || read
-  execute "CC=gcc-3.3 ./configure --enable-preset-menu=./preset-menu $cmd_line_" warn || read
-  execute "make -j2 CC=gcc-3.3" warn || read #return 1
+  if [ -x /usr/bin/gcc-3.4 ] ; then
+    CC='gcc-3.4'
+  else # assume we have gcc-3.3
+    CC='gcc-3.3'
+  fi
+  [ -r /lib64 ] && CC="$CC -m32"
+
+  execute "CC=$CC ./configure --enable-preset-menu=./preset-menu $cmd_line_" warn || read
+  execute "make -j2 CC=$CC" warn || read #return 1
 
   local st1_="stage1/stage1"
   local st2_="stage2/stage2"