m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.c
m2/gm2-libs/gm2-libs-host.h
-test -d $(@D) || $(mkinstalldirs) $(@D)
$(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs -I$(srcdir)/../include
-I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@
m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.cc
m2/gm2-libs/gm2-libs-host.h
-test -d $(@D) || $(mkinstalldirs) $(@D)
$(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs -I$(srcdir)/../include
-I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@
m2/mc-boot/main.o: $(M2LINK) $(srcdir)/m2/init/mcinit
-test -d $(@D) || $(mkinstalldirs) $(@D)
unset CC ; $(M2LINK) -s --langc++ --exit --name m2/mc-boot/main.cc
$(srcdir)/m2/init/mcinit
$(CXX) -g -c -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES)
m2/mc-boot/main.cc -o $@
mcflex.o: mcflex.c m2/gm2-libs/gm2-libs-host.h
$(CC) -I$(srcdir)/m2/mc -g -c $< -o $@ # remember that mcReserved.h
is copied into m2/mc
regards,
Gaius
On Sun, Mar 19, 2023 at 6:27 PM john o goyo <jog37@riddermarkfarm.ca> wrote:
Greetings, Gaius.
I tried building a 64-bit version of gm2 (ABI=64, CFLAGS=-m64, and
sparcv9). The C/C++ bits build fine without m2 but the -m64 does not
seem to propagate down to building mc. The stuff in m2/mc-boot was
compiled to 32 bits.
/home/build/gcc/git/bin/g++ -c -DIN_GCC -m64 [...] -o m2/boot-bin/mc
[...]
ld: fatal: file m2/mc-boot/GASCII.o: wrong ELF class: ELFCLASS32
ld: fatal: file m2/mc-boot/GArgs.o: wrong ELF class: ELFCLASS32
[...]
If you could tell me where these are compiled, I could manually adding
the 64-bit flag.
Sincerely,
john