[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#358771: glibc can not be cross-compiled



Package: glibc
Severity: minor
Tags: patch

--- glibc-2.3.6/debian/sysdeps/linux.mk	2006-03-17 23:06:20.000000000 +0100
+++ glibc-2.3.6-3.my/debian/sysdeps/linux.mk	2006-03-17 23:09:21.000000000 +0100
@@ -24,7 +24,11 @@
 libc_add-ons = linuxthreads $(add-ons)
 
 ifndef LINUX_SOURCE
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+  LINUX_HEADERS := /usr/$(DEB_HOST_GNU_TYPE)/include
+else
   LINUX_HEADERS := /usr/include
+endif
 else
   LINUX_HEADERS := $(LINUX_SOURCE)/include
 endif

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)




Reply to: