[Orca-users] orca make error gcc KPIC
Blair Zajac
blair at orcaware.com
Wed Feb 15 21:33:10 PST 2006
David Michaels wrote:
> I used to get this all the time, but I thought it went away in the r5*
> builds. I never quite figured out what caused this. Near as I can
> figure, certain Makefiles in the build tree don't pick up on the CC
> environment variable, and wind up assigning CC as "cc" instead of "gcc",
> and both KPIC and -xO3 options generate errors.
>
> I'm sure there's a better way to address this, but I used to fix it with
> a band-aid by running:
>
> cd {orca-build-directory}
> find . -name Makefile -exec fix-orca-Makefile.sh {} \;
>
> Here is the fix-orca-Makefile.sh that I've used in the past, and has
> worked (I haven't tried it with r5* yet, but it'll "probably work").
>
> #!/bin/sh
>
> if [ $# -ge 1 ]; then
> makefile=$1
> else
> makefile=Makefile
> fi
>
> if [ -f $makefile ]; then
> ed $makefile <<EOF
Wow, an ed script. Never saw one of those before :)
Anyway we could get a Perl version :) It would be easier to maintain. And
maybe we should check this into Subversion.
Regards,
Blair
More information about the Orca-users
mailing list