
11-06-2008, 14:02
|
 |
\dev\null
|
|
חבר מתאריך: 08.11.02
הודעות: 11,379
|
|
בו נהיה ספציפים , השאלה עלתה אחרי מאיל שקיבלתי מרשימת התפוצה של rtorrent & libtorrent
שם משהו הציע פתרון איך לקמפל את התוכנה סטטאטית
קוד:
> this Makefile will statically compile rtorrent under Macosx 10.5
> Requirements:
> XCode
> Usage:
> 1. create new directory
> 2. create in this directory file with name Makefile.
> 3. download and unpack in this folder following libraries:
> pkg-config http://pkgconfig.freedesktop.org/releases/
> libsig++ http://libsigc.sourceforge.net/stable.shtml
> xml-rpc-c http://sourceforge.net/project/showfiles.php?group_id=16847
> libtorrent http://libtorrent.rakshasa.no/
> rtorrent http://libtorrent.rakshasa.no/
> 4. redefine in Makefile variables pkg-config-dir, libsig-dir, xml-rpc-dir,
> libtorrent-dir and rtorrent-dir to corresponding values
> 6. redefine variable sandbox to absolute path to current directory plus san
> 5. comment in file /usr/lib/pkgconfig/libcurl.pc line
> Libs: -L${libdir} -lcurl -arch ppc -arch ppc64 -arch i386 -arch
> x86_64 -dynamic -arch ppc -arch ppc64 -arch i386 -arch x86_64 -g
> -Os -pipe -arch ppc -arch ppc64 -arch i386 -arch x86_64 -pipe
> -Wl,-search_paths_first -Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5
> -Wl,-weak-lk5crypto -Wl,-weak-lcom_err -Wl,-weak-lresolv
> and write new one (you need remove all arch except 386)
> Libs: -L${libdir} -lcurl -arch i386 -dynamic -arch i386 -g -Os -pipe -arch
> i386 -pipe -Wl,-search_paths_first -Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5
> -Wl,-weak-lk5crypto -Wl,-weak-lcom_err -Wl,-weak-lresolv
> 6. run make. rtorrent will be in your current folder
> 7. return back /usr/lib/pkgconfig/libcurl.pc
>
פשוט רציתי לדעת מה הכוונה ומה זה נותן
|