Neil Williams wrote:

Just re-reading what you said:

...
> CC=cc
> endif
> 

That will cause troubles when using CC=gcc-4.3 dpkg-buildpackage (for
example in i386, where 4.3 is not the default gcc).

Something like CC=$(CC) should be used (the intention is to preserve the
original $(CC), but of course that line won't work).

Something like:

ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
OURCC=$(DEB_HOST_GNU_TYPE)-$(CC)
else
OURCC=$(CC)
endif

$(OURCC) $(CFLAGS) lockrun.c -o lockrun


Maybe someone with more knowledge of make could provide some feedback.

Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to