gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem building 64-bit gm2 on Solaris 11.3/sparc


From: Gaius Mulley
Subject: Re: Problem building 64-bit gm2 on Solaris 11.3/sparc
Date: Wed, 22 Mar 2023 02:29:53 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

john o goyo <jog37@riddermarkfarm.ca> writes:

> Greetings, Gaius.
>
> It seems that after mc translates a Modula-2 file to a C++ file, g++
> is invoked without flags.
>
> Here is a typical invocation for Args.mod:
>
> /home/build/gcc/git/bin/g++ -I. -Im2/pge-boot
> -I/home/build/opt/gcc/src/gcc-git/gcc 
> -I/home/build/opt/gcc/src/gcc-git/gcc/m2/pge-boot
>  -I/home/build/opt/gcc/src/gcc-git/gcc/../include 
> -I/home/build/opt/gcc/src/gcc-git/gcc/../libcpp/include
>  -I/home/build/opt/gcc/src/gcc-git/gcc/../libcody -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include
>  -I/home/build/opt/gcc/src/gcc-git/gcc/../libdecnumber 
> -I/home/build/opt/gcc/src/gcc-git/gcc/../libdecnumber/dpd
>  -I../libdecnumber
> -I/home/build/opt/gcc/src/gcc-git/gcc/../libbacktrace
>  -I/home/build/opt/gcc/src/gcc-git/gcc/m2/pge-boot -Im2/gm2-libs -g -c 
> /home/build/opt/gcc/src/gcc-git/gcc/m2/pge-boot/GArgs.cc -o
> m2/pge-boot/GArgs.o
>
> I do not know where to correct that in gcc/m2/Make-lang.in.
>
> Sincerely,
> john

Hello John,

I think the rules are at the end of Make-lang.in and suspect the changes are:

ifeq ($(M2_MAINTAINER),yes)
include m2/Make-maintainer
else
m2/pge-boot/%.o: m2/pge-boot/%.c m2/gm2-libs/gm2-libs-host.h m2/gm2config.h
        -test -d $(@D) || $(mkinstalldirs) $(@D)
        $(CXX) $(CFLAGS) $(INCLUDES) -I$(srcdir)/m2/pge-boot -Im2/gm2-libs -g 
-c $< -o $@

m2/pge-boot/%.o: m2/pge-boot/%.cc m2/gm2-libs/gm2-libs-host.h m2/gm2config.h
        -test -d $(@D) || $(mkinstalldirs) $(@D)
        $(CXX) $(CXXFLAGS) $(INCLUDES) -I$(srcdir)/m2/pge-boot -Im2/gm2-libs -g 
-c $< -o $@

$(PGE): $(BUILD-PGE-O)
        +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(BUILD-PGE-O) -lm

endif

(I added the CFLAGS and CXXFLAGS) to the $(CXX) command lines above,

hope this helps,

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]