Re: [xml] Mac OS-X: Why are binaries linked against libxml2.dylib?





Rush Manbert wrote:

Nathanael Noblet wrote:


On Jun 3, 2005, at 10:39 AM, Rush Manbert wrote:

Well, I could if I wanted to write my own makefile. All this stuff is set up by ./configure, but there doesn't appear to be a --with-static-binaries (or equivalent) flag. One of my goals is to use the package as distributed to build and install, then do what I need to do to make it usable in my situation. I don't want to maintain my own xmllint project, for example. (I know it's pretty simple in this case, but I have an identical problem with xsltproc, which has more complicated dependencies...)



You don't need to create your own makefiles. Set the flags before you call configure or make so for example:
LD_FLAGS=..... CFLAGS=... ./configure
and then
LD_FLAGS=.... CFLAGS=... make

Oh, sorry. Yes, that's true if it were a command line flag. However, the link line looks like this: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xmllint xmllint.o ./.libs/libxml2.dylib -lpthread -lm

and I need it to look like this:
gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xmllint xmllint.o ./.libs/libxml2.a -lpthread -lm

I don't know of a way to change this with the environment variables.

- Rush

As I didn't say in my last reply, the difference is to use ./.libs/libxml2.a instead of ./.libs/libxml2.dylib. All else is the same.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]