Static compliation

3 views
Skip to first unread message

MrLint

unread,
Jul 29, 2007, 10:09:12 PM7/29/07
to xar-devel
Please forgive my ignorance, but is there any way to compile xar as
static on os X?

jdd...@gmail.com

unread,
Aug 2, 2007, 6:04:36 AM8/2/07
to xar-devel
Yes, it possible. I did it using an xcode project, but you can
probably use './configure --enable-static' and then, make, make
install.

MrLint

unread,
Aug 16, 2007, 6:15:47 PM8/16/07
to xar-devel
Hi, thanks I'll try that. I attempted to set some of the other
configure variables which didn't work, I think I may have
misinterpreted the help for configure.

jdd...@gmail.com

unread,
Aug 17, 2007, 5:20:09 AM8/17/07
to xar-devel
You should probably also add --disable-shared. The linker will use the
shared library if one is available even if you tell him to use a
static library.
./configure --enable-static --disable-shared

I didn't try with xar but it works with some other projects. Also,
make sure that there is no other libxar.dylib already installed on
your system, else the linker will use it.

Reply all
Reply to author
Forward
0 new messages