Re: Re: NetBSD error
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <4c20.3a1ff5ab.b6f69@felicity> |
It's perfectly all right to replace `cat cc-flags` with the more conventional CFLAGS variable. I did it to keep from having the same noisy parameters repeated over and over and hiding Makefile activity. The problem with cc-flags and quoting is probably a shell issue. Perhaps the best way around it would be to modify the cc-flags target in the Makefile to include single quotes. Gabor Z. Papp ([email protected]) wrote: : * Patrik Rådman <[email protected]>: : | Try using -DSNROOT='"/home/gzp"' instead. I think it's losing the quotes. : Seems like that. : | Perhaps the `cat cc-flags` would work if you insert \ at the end of the : | lines in cc-flags? : Yeah, I fixed in that way. There are a lot of problems with : this cat cc-flags way. Also must insert -L. into the flags. : I think more common way just export these stuffs into : CFLAGS, or thats gcc related only? : After the cosmetic changes: : cc `cat cc-flags` -o snprimedb -L./lib -lstuff : /usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment : collect2: ld returned 1 exit status : *** Error code 1 Not sure what you're trying to do with this, there's an object file missing in the command line. : Stop. -harold