| |||
| Home > Compiler Command-line Options > Command-line options > --shared | |||
This option enables a shared library to be generated when
building for ARM Linux with the --arm_linux_paths option.
It enables the selection of libraries and intialization code suitable
for use in a shared library, based on the ARM Linux configuration.
Link two object files, obj1.o and obj2.o,
into a shared library named libexample.o:
armcc --arm_linux_paths --arm_linux_config_file=my_config_file --shared
-o libexample.so obj1.o obj2.o
--arm_linux in the Linker Reference Guide
--library=name in the Linker Reference Guide
--search_dynamic_libraries, --no_search_dynamic_libraries in the Linker Reference Guide
Application Note 212 - Building Linux applications using RVCT v4.0 and the GNU Tools and Libraries.