This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to run a compiled C program?


Georg-Johann Lay <avr@gjlay.de> writes:

> The avr backend auto-generates a part of the texi documentation by
> means of a small C program. The relevant part of t-avr reads:
>
> s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext)
> 	$(RUN_GEN) $< | sed -e 's:\r::g' > avr-mmcu.texi
>
>
> There was a problem report that the executable cannot be found.
>
> When I wrote that I checked other uses of RUN_GEN (which is empty) in
> $(builddir)/gcc/Makefile that do calls like $(RUN_GEN) build/...
>
> What is the correct way to call the executable? Add ./ like so?
>
> s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext)
> 	$(RUN_GEN) ./$< | sed -e 's:\r::g' > avr-mmcu.texi

Yes.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]