svn commit: trunk/uClibc/extra/scripts

aldot at uclibc.org aldot at uclibc.org
Tue Jan 24 18:57:51 UTC 2006


Author: aldot
Date: 2006-01-24 10:57:50 -0800 (Tue, 24 Jan 2006)
New Revision: 13570

Log:
- make sure that icc generates bits/sysnum.h
  pgcc would need a completely different treatment here.


Modified:
   trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh


Changeset:
Modified: trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh
===================================================================
--- trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-01-24 18:52:37 UTC (rev 13569)
+++ trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-01-24 18:57:50 UTC (rev 13570)
@@ -17,8 +17,13 @@
 UNISTD_H_PATH=$top_builddir/include/asm/unistd.h
 INCLUDE_OPTS="-I$top_builddir/include"
 
+case $CC in
+*icc*) CC_SYSNUM_ARGS="-dM" ;;
+*)     CC_SYSNUM_ARGS="-dN" ;;
+esac
+
 ( echo "#include \"$UNISTD_H_PATH\"" ;
-  $CC -E -dN $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines
+  $CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines
   sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp'
 ) |
 $CC -E $INCLUDE_OPTS - |




More information about the uClibc-cvs mailing list