Welcome to iraf.net Monday, May 20 2024 @ 06:03 PM GMT
klabrie |
10/05/2007 11:22PM (Read 3567 times)
|
|
|
Status: offline
Registered: 12/13/2005
Posts: 22
|
Can the XC_FFLAGS, XC_CFLAGS, XC_LFLAGS environment variable be set in an external package's mkpkg.inc file? Or do they absolutely need to be defined in the user's shell environment?Thanks.Kathleen
|
|
|
|
fitz |
10/05/2007 11:22PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Kathleen,Short answer: NoLong answer:
These flags are retrieved by XC using a getenv(), and the only time MKPKG puts anything in the environment is when it is set on the command-line (e.g. mkpkg -p mypkg "XC_LFLAGS='-lfoo'" ). In most cases you would put platform-specific flags in the mkpkg special file list, i.e something like the 'mkpkg.sf.LNUX' that gets included by the mkpkg.inc If the flag you want to add conflicts with something in XC itself, you'd need to use the pass-thru option such as "xc -/foo ...." so it is passed directly to the compiler.Cheers,
-Mike
|
|
|
|
| |
|
Content generated in: 0.12 seconds |
|