mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Feature request: command to rebuild a certain


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] Feature request: command to rebuild a certain package
Date: Sun, 26 Sep 2010 16:14:52 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Bart van Andel <address@hidden> schrieb:
> I couldn't find a command or an option to forcibly rebuild a package within
> mingw-cross-env. This is sometimes needed, e.g. when debugging a library
> that builds without error, but causes problems later when it is linked to
> your program (a case which applies to me).

You can avoid this trouble altogether by writing a simple test program
for your lib. At the end of the build commands, just compile and link it.
There are some facilities in Mingw-cross-env for test programs. That way,
you'll _always_ be sure that once your package builds, it will link correctly.

To get an example, you might want to look at the last few lines of "src/sdl.mk"
as well as "src/sdl-test.c".

> Changing the .mk file and issuing
> 'make <pkgname>' won't work, since mingw-cross-env sees that it has already
> been built, as long as the package source version number / checksum hasn't
> changed.

Are you _really_ sure that this happened to you? This would be a serious
bug in the dependency resolution of GNU Make, or in our main Makefile.

A package should always rebuild after you changed one of its *.mk, *.patch
or *-test* files - even if version numbers and package checksums don't
change.

So if you are able to reproduce that issue, please describe exactly
what commands you issued and what results you got in between.


Greets,
Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR



reply via email to

[Prev in Thread] Current Thread [Next in Thread]