GNU bug report logs -
#7824
1.11 doesn't add sources with nonstandard suffixes when making a binary
Previous Next
Reported by: Юрий Пухальский <aikipooh <at> gmail.com>
Date: Tue, 11 Jan 2011 14:44:02 UTC
Severity: wishlist
Tags: wontfix
Merged with 7670
Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Ah, sorry. That's so easy, and now i recollect you must have said this
before, but i've lost it...
2011/1/13 ralf.wildenhues <ralf.wildenhues <at> gmx.de>:
> * Юрий Пухальский wrote on Wed, Jan 12, 2011 at 03:21:11PM CET:
>> -----------------------------
>> SUFFIXES = .pc
>>
>> .pc.lo:
>> cp $(srcdir)/$*.pc $(builddir)/$*.c
>> $(LTCOMPILE) -c $(builddir)/$*.c
>> rm -f $(builddir)/$*.c
>>
>> noinst_PROGRAMS = 1 2
>>
>> 1_SOURCES = 1.pc
>
> Program sources are not compiled into .lo files, but into .$(OBJEXT)
> files. So you would need a .pc.$(OBJEXT) rule. You can use $(COMPILE)
> instead of $(LTCOMPILE).
>
>> db_src = 1.pc
>> 2_SOURCES = dummy.c
>> 2_LDADD = $(db_src:.pc=.lo)
>> -----------------------------
>> 1 is not built:
>> --------------------------------
>> devfe:~/tmp/test>make
>> /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o 1
>> libtool: link: gcc -g -O2 -o 1
>> gcc: no input files
>> make: *** [1] Error 1
>
--
«The good thing about standards is there are so many to choose from.»
This bug report was last modified 12 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.