Welcome to iraf.net Monday, May 20 2024 @ 06:03 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Can XC_FFLAGS be set in mkpkg.inc
   
klabrie
 10/05/2007 11:22PM (Read 3567 times)  
++---
Junior

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

 
Profile Email
 Quote
fitz
 10/05/2007 11:22PM  
AAAAA
Admin

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

 
Profile Email
 Quote
   
Content generated in: 0.12 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login