This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux applications using RVDS

Note: This was originally posted on 28th July 2010 at http://forums.arm.com

hi

I  cross compiled some linux code using RVDS .

i used the instructions given in the following document

Building linux Applications using RVCT 4.0 and GNU tools

i used the latest CODE sourcery tool chain for this..


The compilation went through and it created a dynamically linked excuetable which uses shared libs.

My aim is to create a static excuetable which does not depend on any shared obj .

(basically something like gcc --static ) but i am not able to find such a option with armcc.

Kindly help

Regards
Sundar
Parents
  • Note: This was originally posted on 17th August 2010 at http://forums.arm.com

    Using 'armcc --translate_gcc --arm_linux_config_file=... --static ...' should behave like 'gcc --static ...'.  What command-line options are you using?


    Hi  Scott

    Thanks for the reply

    I used the following command line

    armcc  --cpu=..  --arm_linux_paths --arm_linux_config_file=/opt/config/armcc_config.xml

    As u suggested  i tried using 
    armcc --translate_gcc --arm_linux_config_file=... --static ...' should behave like 'gcc --static ..

    But it still produces a Dynamically linked library. Basically i guess it is because of the config.xml file

    When i look through the file i find options like --fpic --shared which actually tells the comliler to produce a dynamically linked executable

    Is there any way i can override  the  options given in the config file . ?

    while creating the config file i use the automatic configuration like

    armcc --arm_linux_configure --arm_linux_config_file=config_file_path
    --configure_gcc=path_to_gcc

    where path to gcc i give the path of codesourcery gcc .

    it automatically detects the libraries and it creates the config.xml ..
    and the config files has options like --fpic --shared which actually tells the comliler to produce a dynamically linked executable.

    No while configuring can i tell the xml file not to add these options? Any other options for armcc --arm_linux_configure 

    thanks
    Sundar
Reply
  • Note: This was originally posted on 17th August 2010 at http://forums.arm.com

    Using 'armcc --translate_gcc --arm_linux_config_file=... --static ...' should behave like 'gcc --static ...'.  What command-line options are you using?


    Hi  Scott

    Thanks for the reply

    I used the following command line

    armcc  --cpu=..  --arm_linux_paths --arm_linux_config_file=/opt/config/armcc_config.xml

    As u suggested  i tried using 
    armcc --translate_gcc --arm_linux_config_file=... --static ...' should behave like 'gcc --static ..

    But it still produces a Dynamically linked library. Basically i guess it is because of the config.xml file

    When i look through the file i find options like --fpic --shared which actually tells the comliler to produce a dynamically linked executable

    Is there any way i can override  the  options given in the config file . ?

    while creating the config file i use the automatic configuration like

    armcc --arm_linux_configure --arm_linux_config_file=config_file_path
    --configure_gcc=path_to_gcc

    where path to gcc i give the path of codesourcery gcc .

    it automatically detects the libraries and it creates the config.xml ..
    and the config files has options like --fpic --shared which actually tells the comliler to produce a dynamically linked executable.

    No while configuring can i tell the xml file not to add these options? Any other options for armcc --arm_linux_configure 

    thanks
    Sundar
Children
No data