This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: tcl cannot build 64bit.
Andreas Schwab <schwab@suse.de> writes:
> > I think I emailed the fix to the problem wrt to building tcl 64bit. All
> > it requires is a one line fix in Makefile.in.
> >
> > src/tcl/unix/Makefile.in:479
> >
> > tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE}
> > ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@
> > ${LIBS} ${CC_SEARCH_FLAGS} -o tclsh
> >
> >
> > It is missing the ${CFLAGS} in the cc line.
>
> It shouldn't be needed, since it's a link command, not a compile command.
> If you need -m64 for linking you must add it to LDFLAGS. Or just use
> CC="$CC -m64" since it's actually a different compiler after all.
The GNU standards require that CFLAGS be used in every command which
uses CC, including ones which simply link.
Of course, Tcl is not a GNU program.
Ian