OS/2 codes: How to link statically against kLIBC
Originally, it is not supposed to link statically against kLIBC. That is, all the programs linked against kLIBC will depend on libcxxx.dll.
Neverthelss, it is not impossible. Do the following.
Then, you can get test.exe without dependency on libcxxx.dll.
Neverthelss, it is not impossible. Do the following.
- gcc -Zomf -static -o test.exe test.c -lc_omf386
Then, you can get test.exe without dependency on libcxxx.dll.
댓글
댓글 쓰기