diff options
author | Diego Elio Pettenò <flameeyes@gmail.com> | 2011-02-08 16:41:18 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gmail.com> | 2011-02-08 16:41:18 +0100 |
commit | 06834930632cc2997f3cea770fa7a8931f3fa5ed (patch) | |
tree | aa652041ccde43338539c151f0fe2afd053b07d5 /strpool | |
parent | b7067704706b6dd72b00d14a17be213a06bea502 (diff) |
build-sys: make libatasmart easily cross-compilable
Pick up the AX_CC_FOR_BUILD macro from autoconf-archive (improved, going to
be sent there soon), then use that one to find the host's compiler.
Build the strpool in a different directory, since you cannot override CC
and other variables on a per-target basis yet. While this adds recursivity
to the build system is the best hope you have to properly solve the
cross-compilation.
Update .gitignore accordingly to the above changes, and make sure
bootstrap.sh search macro files in the m4 directory.
Diffstat (limited to 'strpool')
-rw-r--r-- | strpool/Makefile.am | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/strpool/Makefile.am b/strpool/Makefile.am new file mode 100644 index 0000000..6170754 --- /dev/null +++ b/strpool/Makefile.am @@ -0,0 +1,28 @@ +# This file is part of libatasmart. +# +# Copyright 2008 Lennart Poettering +# +# libatasmart is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 2.1 of the +# License, or (at your option) any later version. +# +# libatasmart is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with libatasmart. If not, If not, see +# <http://www.gnu.org/licenses/>. + +CC = @CC_FOR_BUILD@ +CFLAGS = @BUILD_CFLAGS@ +LDFLAGS = @BUILD_LDFLAGS@ + +noinst_PROGRAMS = \ + strpool + +strpool_SOURCES = \ + ../strpool.c + |