[Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >
Jason Short wrote:
>
> Here's a patch that makes the change. But it doesn't work, and I don't
> know why.
>
> if gcc -DHAVE_CONFIG_H -I. -I../../freeciv/common -I.. -I../intl
> -I../../freeciv/common/aicore -I. -g -O -Wall -Werror -Wcast-align
> -Wmissing-prototypes -Wmissing-declarations -MT city.o -MD -MP -MF
> ".deps/city.Tpo" -c -o city.o ../../freeciv/common/city.c;
>
> -I. is listed both first and last, yet packets_gen.h is being taken from
> ../../freeciv/common instead. (To test it I made the packets_gen.h in
> the srcdir empty. So it won't compile unless the builddir copy is used.)
>
My somewhat educated guess:
You include packets.h from sourcedir -> "current directory" is
sourcedir when packets.h includes "packets_gen.h". Try using <> in this
include instead of "" (yeah, I really should make simple tests myself
before giving any advice, but I don't have proper test environment
available)
- Caz
|
|