Dynamic Shared Object(Library) in Linux - 리눅스 동적 공유 라이브러리
Linux 2021. 2. 9. 20:08 |리눅스에서 동적 공유 라이브러리(Dynamic Shared Library)를 사용해 보자.
-fPIC
If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, PowerPC and SPARC .
Position-independent code requires special support and therefore works only on certain machines.
-shared
Produce a shared object which can then be linked with other objects to form an executable. Not all systems support this option. For predictable results, you must also specify the same set of options that were used to generate code (-fpic, -fPIC, or model suboptions) when you specify this option.
'Linux' 카테고리의 다른 글
Linux(Ubuntu) Static IP Configuration - 리눅스(우분투) 고정 IP (0) | 2021.08.25 |
---|---|
How to read and write joystick(gamepad) events(inputs) - 조이스틱(게임패드) 이벤트 읽고 쓰기 (0) | 2021.07.12 |
Linux CMake를 이용한 컴파일(빌드) 자동화 (0) | 2021.02.08 |
Linux make를 이용한 컴파일(빌드) 자동화 (0) | 2021.02.07 |
Install OpenCV-Python in Linux(Ubuntu) - 리눅스(우분투)에 OpenCV-Python 설치하기 (0) | 2021.01.15 |