From: Alan W. I. <ir...@be...> - 2002-12-27 03:41:57
|
On Thu, 26 Dec 2002, Maurice LeBrun wrote: > On another note, I need to modify the command line args used by the compiler > or linker. Although I've made progress, so far I still haven't gotten a > completely successful build on either: Solaris, OSF1, or IRIX. As for the > first two, the build is trying to pass the "-fPIC" option to the KCC compiler > which isn't supported. So I need to get rid of that, or change it to +KPIC. > I'm reading through the AM info pages now, what a pain. > > As for IRIX, I need to pass "-64 -mips4" somehow. This at least I know I can > do in principle, probably by using flags like I did before: > > USER_FLAGS_CXX: add these to CXXFLAGS > USER_FLAGS_CC: add these to CCFLAGS Can you just set LDFLAGS to +KPIC and CXXFLAGS and CFLAGS to "-64 -mips4" in the environment before you configure? I believe autotools tries really hard to allow the user to override that way. Of course, this suggestion will only work if the KCC compiler only warns about the -fPIC flag rather than aborting completely if it encounters it. If this works with environment variables, then it will be easier to proceed to automating it. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |