[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing $libdir
From: |
Benoit SIGOURE |
Subject: |
Re: Changing $libdir |
Date: |
Tue, 16 Oct 2007 11:10:37 +0200 |
On Oct 16, 2007, at 9:31 AM, NightStrike wrote:
If I do:
lib_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c
in the Makefile.am, libfoo.a will be installed into $(prefix)/lib. If
I am using AC_CANONICAL_SYSTEM in configure.ac, I want to be able to
set build, host, and target for building a cross compiler. I would
then want the above library to be installed into
$(prefix)/$(host)/lib. How do I accomplish that?
How about:
mylibdir = ${prefix}/${host}/lib # You might want to AC_SUBST this
(beware of not expanding it straight in the configure.ac if you do
this because ${prefix} is not known at configure time and should be
overridable even after configure has been run)
mylib_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c
?
--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
PGP.sig
Description: This is a digitally signed message part