OSDN Git Service

Make sure that CROSS="" for native building.
authorDavid Schleef <ds@schleef.org>
Sat, 20 Apr 2002 22:43:27 +0000 (22:43 -0000)
committerDavid Schleef <ds@schleef.org>
Sat, 20 Apr 2002 22:43:27 +0000 (22:43 -0000)
debian/changelog
debian/rules

index 5eafc9b..060ec19 100644 (file)
@@ -1,3 +1,10 @@
+uclibc (0.9.11-cvs20020420-1) unstable; urgency=low
+
+  * Many of the configs have broken CROSS definitions.  Compensate
+    for that in debian/rules.
+
+ -- David Schleef <ds@schleef.org>  Sat, 20 Apr 2002 15:40:39 -0700
+
 uclibc (0.9.11-cvs20020419-1) unstable; urgency=low
 
   * new upstream snapshot
index 3a9cc4b..36777ee 100755 (executable)
@@ -41,6 +41,8 @@ endif
 
 ifneq ($(target),$(DEB_HOST_GNU_CPU))
 cross_options = --cross="$(target)-linux-"
+else
+cross_options = --cross=""
 endif
 
 p_dev=libuclibc-dev$(target_suffix)
@@ -72,6 +74,14 @@ build-stamp: debian/control
        
        touch $(kernel_source)/include/linux/autoconf.h
 
+       # Various stupid programs use linux/version.h to find the
+       # Linux version.
+       ( \
+               echo '#define UTS_RELEASE "2.4.16"' \
+               echo '#define LINUX_VERSION_CODE 132112' \
+               echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' \
+       ) >$(kernel_source)/include/linux/version.h
+
        extra/Configs/uClibc_config_fix.pl \
                --arch=$(target) \
                $(cross_options) \