Reference: http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html
Add directory to the runtime library search path, for shared object.
Example: Add runtime search path /tmp/igetui
gcc -Wl,-rpath,/tmp/igetui/ $(PLATFORM) $(DEBUG) -lpthread -ldl
OR add it to LD_LIBRARY_PATH
ex.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/igetui
OR add it /etc/ld.so.conf and run ldconfig
Friday, January 16, 2015
Subscribe to:
Posts (Atom)
Check clients which connect to Mac OS X Wi-Fi Internet Sharing
arp -i bridge100 -a bridge100 may be different on your Mac OSX
-
For Mac OS: Use lipo. Ex. lipo -info staticLibrary.a For Linux OS: Use file Ex. file staticLibrary.c
-
[轉貼]用GCC自製Library 引用 : PTT 看板 : LinuxDev ( 作者 : cole945) Library 可分成三種, static 、 shared 與 dynamically loaded 。 1. Static libr...
-
1. Create an account on TestFlight ( http://testflightapp.com ) and with "Developer" option checked. 2. Log in to the TestFlight ...