summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-24 18:57:50 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-24 18:57:50 +0000
commit68e0dd8029fde57d45830db8c094d608cfa49519 (patch)
tree9351686346267cbcdc0abf19a8a45afffc998f04
parentd0b6852551aff33109599ba3e1d324a90ca2b8a2 (diff)
- make sure that icc generates bits/sysnum.h
pgcc would need a completely different treatment here.
-rwxr-xr-xextra/scripts/gen_bits_syscall_h.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh
index 78c54a935..718253e90 100755
--- a/extra/scripts/gen_bits_syscall_h.sh
+++ b/extra/scripts/gen_bits_syscall_h.sh
@@ -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 - |