Subject: Q re. cc transform script: passing more than one cc argument?
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 09/25/2004 18:12:25
Hi,

I'm trying to write a wrapper transform logic for the IRIX 5.3 IDO cc.
I'm using:

######################################################################
# IDO 5.3 seems to have problems with -O3, so downgrade it
######################################################################
-O3)
        arg=-O2 -Olimit 5000
        msg_log $wrapperlog "   (transform-ido53-cc) to: $arg"
        addtocache=yes
        ;;


A test yields the following:

===> Building for nut-10.2
cc -O3 -Wall -pedantic -ansi -DNUTDIR=\".nutdb\"
-DFOODDIR=\"/usr/local/pkg/share/nut\"    -c -o addfood.o addfood.c
/usr/people/schwarz/pkgsrc/biology/nut/work/.wrapper/bin/cc[49]:
-Olimit:  not found


Obviously something goes wrong here.
How can I pass more than one argument without running into these
problems?
When I enclose the arguments in quotes they are passed to cc as a single
argument, which does not work either:
cc: Error: malformed or unknown option: -O2 -Olimit 5000


Is the wrapper logic framework documented somewhere? Is there some
documentation on how to use the new cmd-sink logic?

Georg 



-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442