| |||
| Home > Compiler Command-line Options > --arm_linux_paths | |||
This option enables you to build code for ARM Linux.
You can use this option after you have configured the tools for use with ARM Linux.
This is a compiler option only. It follows the typical GCC usage model, where the compiler driver is used to direct linkage and selection of standard system object files and libraries.
This option can also be used to aid migration from versions
of RVCT earlier than RVCT v4.0. After you have created a configuration
file using --arm_linux_configure, you can modify
an existing build by replacing the list of standard options and
search paths with the --arm_linux_paths option.
That is, --arm_linux_paths can be used to replace:
all of the default options
listed for --arm_linux
header paths
library paths
standard libraries.
You must specify the location of the configuration file by
using --arm_linux_config_file=.filename
Compile and link application code:
armcc --arm_linux_paths --arm_linux_config_file=my_config_file -o
hello -O2 -Otime -g hello.c
Compile a source file source.c for use
in a shared library:
armcc --arm_linux_paths --arm_linux_config_file=my_config_file --apcs=/fpic
-c source.c
Link two object files, obj1 and obj2,
into a shared library called my_shared_lib.so,
using the compiler:
armcc --arm_linux_paths --arm_linux_config_file=my_config_file --shared
-o my_shared_lib.so obj1.o obj2.o
--arm_linux in the Linker Reference
--library=name in the Linker Reference
--search_dynamic_libraries, --no_search_dynamic_libraries in the Linker Reference
About building Linux applications with the ARM Compiler toolchain and GNU libraries in Building Linux Applications with the ARM® Compiler toolchain and GNU Libraries.