Can XC_FFLAGS be set in mkpkg.inc
Kathleen Labrie wrote on Oct 05, 2007
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
Thanks.
Kathleen
Mike Fitzpatrick wrote on Oct 05, 2007
Kathleen,
Short answer: No
Long 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
Short answer: No
Long 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
Last post on Oct 05, 2007