Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] newapkbuild: add CMake support.

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Wed, 27 May 2015 09:09:50 +0200

On Tue, 31 Mar 2015 19:30:04 -0700
Isaac Dunham <ibid.ag_at_gmail.com> wrote:

> This is a first try that *might* work for cross-compiling packages with
> an absolute bare minimum of requirements, if you're lucky.
> I can't debug that part further, but the references should help with it.
> ---
> newapkbuild.in | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)

Applied!



> + -DCMAKE_CXX_COMPILER="\${CXX:-g++}" \\
> + -DCMAKE_C_COMPILER="\${CC:-gcc}" \\
> + -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\
> + -DCMAKE_CXX_FLAGS="\$CFLAGS" \\


I am slightly in doubt if setting -DCMAKE_CXX_COMPILER is a good idea.
This made building llvm with cmake break with ccache.

I had to do this:
http://git.alpinelinux.org/cgit/aports/commit/main/llvm?id=f38ff631e3623c3a1f8983ae906c86d6c10258a3

I applied your patch as-is anyway, so we can test it.

Thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed May 27 2015 - 09:09:50 GMT