new buildsystem merged into master

Dirk Hohndel dirk at hohndel.org
Wed Oct 9 15:57:38 UTC 2013


On Wed, 2013-10-09 at 15:39 -0700, Linus Torvalds wrote:
> On Wed, Oct 9, 2013 at 12:20 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
> >
> > Also let us know if things don't work with qmake.
> 
> Ugh. The libdivecomputer situation is a disaster. I thought you made
> it use a static link, but apparently somebody stopped you from doing
> the sane thing.

If it's correctly installed it links against the shared library.

If it is NOT installed and you pass LIBDCDEVEL=1 it assumes that
libdivecomputer sources are in ../libdivecomputer and links  against
that... by using -L../libdivecomputer/src/.libs -ldivecomputer

In which scenario does this fail for you?

> But the lack of a default makefile is also very annoying. I don't have
> "qmake", for example, on F19 it's called "qmake-qt4". And we used to
> detect that automatically, now we don't.
> 
> Can we please do something like this, and put it in a Makefile:
> 
>   -include Makefile.generated
> 
>   QMAKE = $(shell { qmake -query QT_VERSION >/dev/null 2>&1 && echo
> qmake; } || \
>                   { qmake-qt4 -v >/dev/null 2>&1 && echo qmake-qt4; })
> 
>   Makefile.generated:
>           $(QMAKE) -o $@
> 
> and then you can just do "make" to make the makefile. Because Yo Dawg.

I'll play with this when I have time.

/D



More information about the subsurface mailing list