[Top][All Lists]

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

How to configure LIBOBJS

From: Juliano Ravasi Ferraz
Subject: How to configure LIBOBJS
Date: Sat, 10 Jan 2004 20:22:16 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007


I'm experiencing some problems setting up Automake to use some replacement files through AC_LIBOBJ macro, and I couldn't realize how to do it. The automake manual didn't help.

I've added AC_CONFIG_LIBOBJ_DIR([lib]) to, and added the needed files to lib/. Automake found them and added all to distribution except for some needed header files that I had to list under noinst_HEADERS.

The problem is that when I add @LIBOBJS@ to _LIBADD and _LDADD rules in the's of src/ and util/ directories, automake fails with missing files in those directories, the same files that are in the lib/ directory (automake bug?).

I don't know what to do now. It is a bit stupid to have identical copies of all lib/ files in src/ and util/ directories, and have them compiled many times. I thought about creating a libcompat.a in lib/ and then link it to the libraries and binaries of src/ and util/, but I cannot (portably) link a static library against a shared library.

Another idea was finding a way to prepend ../lib/ to each value of @LIBOBJS@ for src/ and util/, but I don't know of automake internals and didn't figure how to do that.

What can I do now? Am I missing something too obvious?

Thanks for any help.

Juliano Ravasi Ferraz

I always lie. In fact, I'm lying to you right now!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]