Re: [packages/hfsplus-tools] - pl, pass CFLAGS and LDFLAGS (no CC, as it must be clang because of Blocks extension)

2013-03-20 Thread Elan Ruusamäe
On 20.03.2013 04:10, Tomasz Pala wrote: > >CFLAGS="%{rpmcflags}" make Sometimes you need to export env, depends on build system chaining. that was the syntax that "exports" to make -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.o

Re: [packages/hfsplus-tools] - pl, pass CFLAGS and LDFLAGS (no CC, as it must be clang because of Blocks extension)

2013-03-19 Thread Jakub Bogusz
On Wed, Mar 20, 2013 at 03:10:26AM +0100, Tomasz Pala wrote: > On Tue, Mar 19, 2013 at 18:36:49 +0200, Elan Ruusamäe wrote: > > >> +%{__make} \ > >> + CFLAGS="%{rpmcflags} -fblocks -Wall -I$(pwd)/BlocksRunTime > >> -I$(pwd)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -DLINUX=1 -DBSD=1 > >> -

Re: [packages/hfsplus-tools] - pl, pass CFLAGS and LDFLAGS (no CC, as it must be clang because of Blocks extension)

2013-03-19 Thread Tomasz Pala
On Tue, Mar 19, 2013 at 18:36:49 +0200, Elan Ruusamäe wrote: >> +%{__make} \ >> +CFLAGS="%{rpmcflags} -fblocks -Wall -I$(pwd)/BlocksRunTime >> -I$(pwd)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -DLINUX=1 -DBSD=1 >> -DVERSION=\\\"%{version}\\\"" \ >> +LDFLAGS="%{rpmldflags} -L$(pwd)/

Re: [packages/hfsplus-tools] - pl, pass CFLAGS and LDFLAGS (no CC, as it must be clang because of Blocks extension)

2013-03-19 Thread Elan Ruusamäe
On 17.03.2013 09:10, qboosh wrote: %build -export CFLAGS="%{rpmcflags}" -%{__make} +# note: keep CC=clang, not %{__cc} +%{__make} \ + CFLAGS="%{rpmcflags} -fblocks -Wall -I$(pwd)/BlocksRunTime -I$(pwd)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -DLINUX=1 -DB

Re: clang

2013-02-18 Thread Elan Ruusamäe
On 17.02.2013 16:37, Jakub Bogusz wrote: On Sun, Feb 17, 2013 at 01:50:38PM +0200, Elan Ruusamäe wrote: is pld clang broken? it does not seem to find it's own headers glen@carme-pld diskdev_cmds-540.1.linux3/BlocksRunTime $ cat test.c #include glen@carme-pld diskdev_cmds-540.1.l

Re: clang

2013-02-17 Thread Jakub Bogusz
On Sun, Feb 17, 2013 at 01:50:38PM +0200, Elan Ruusamäe wrote: > is pld clang broken? it does not seem to find it's own headers > > glen@carme-pld diskdev_cmds-540.1.linux3/BlocksRunTime $ cat test.c > #include > > glen@carme-pld diskdev_cmds-540.1.linux3/BlocksRunTime $

clang

2013-02-17 Thread Elan Ruusamäe
is pld clang broken? it does not seem to find it's own headers glen@carme-pld diskdev_cmds-540.1.linux3/BlocksRunTime $ cat test.c #include glen@carme-pld diskdev_cmds-540.1.linux3/BlocksRunTime $ clang test.c test.c:2:10: fatal error: 'stdbool.h' file not found #include