From 94776c33b40c24702f4c83a40ccbd749853d31fc Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Tue, 24 May 2011 12:34:46 +0430 Subject: [PATCH] neatcc: add a ncc invocation script --- README | 21 ++------------------- neatcc | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 19 deletions(-) create mode 100755 neatcc diff --git a/README b/README index 07f6332..f5207df 100644 --- a/README +++ b/README @@ -20,22 +20,5 @@ USAGE ===== neatcc has been tested with neatlibc and dietlibc. It can compile -itself and neat* toolchain. I use this script to run neatcc: - -# !/bin/sh -NEAT="/path/to/neatlibc" -CC="/path/to/neatcc/ncc" -LD="/path/to/ld/ld" - -# these can be ignored -CPPFLAGS="-Dfloat=long -Ddouble=long" - -for x in $* -do - if [ x$x == "x-c" ] - then - exec ${CC} ${CPPFLAGS} -I${NEAT} $* - fi -done - -exec ${LD} $* ${NEAT}/start.o ${NEAT}/libc.a +itself and neat* toolchain. The included neatcc script could be +used to invoke ncc with neatlibc library. diff --git a/neatcc b/neatcc new file mode 100755 index 0000000..d09e148 --- /dev/null +++ b/neatcc @@ -0,0 +1,16 @@ +#!/bin/sh +NEAT="/path/to/neatlibc" +CC="/path/to/neatcc/ncc" +LD="/path/to/neatld/ld" + +CPPFLAGS="-Dfloat=long -Ddouble=long -D__extension__=" + +for x in $* +do + if [ "$x" == "-c" ] + then + exec ${CC} ${CPPFLAGS} -I${NEAT} $* + fi +done + +exec ${LD} $* ${NEAT}/start.o ${NEAT}/libc.a -- 2.11.4.GIT