On Thu, Jun 26, 2008 at 06:22:56AM -0700, Roman Morokutti wrote: > My intention was to pass some extra flags > when compiling some third party programs over > "make", just how to see, if the one or the other > additional setting would speed up those programs.
make allows to override variables in a command line. make CC=suncc CFLAGS=-O will run make with makefile variable CC set to sunCC and makefile variable CFLAGS set to -O. If you have nested makes then you might want to set environment variables and run make -e. regards, Fedor. > > Right now I write a script to switch to either use > Sun Studio, or GCC. When I switch to Sun > Studio, I would like to pass different settings > as when switched to GCC. > > Roman. > -- > This message posted from opensolaris.org > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org