[Top][All Lists]

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

Re: gmake-4.2.1 ignores assignment of ARCH on FreeBSD

From: Yuri
Subject: Re: gmake-4.2.1 ignores assignment of ARCH on FreeBSD
Date: Tue, 26 Dec 2017 09:59:24 -0800
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 12/26/17 07:26, Paul Smith wrote:
A faster way for you to get answers would be to put the relevant
makefile lines into your email so we could all see them without
installing an entirely different operating system, or pulling down a
software package, unpacking it, and snuffling through its build system.

Here are all lines where the variable ARCH appears in the makefile. ARCH doesn't get substituted. Renaming ARCH -> ARCHX changes the behavior to what is expected.

# beginning of the Makefile: 2 values have shell substitutions, but ARCH doesn't get substituted and OSTYPE does

.PHONY:         all depend clean lint doc doxygen check valgrind libdbl coverage

ARCH           :=      $(shell uname -m | \
                        sed \
                        -e s/sun../sparc/ \
                        -e s/i.86/x86/ \
                        -e s/i86pc/x86/ \
                        -e s/amd64/x86_64/ \
                        -e s/IP../mips/ \
                        -e s/9000..../hppa/ \
                        -e s/Power\ Macintosh/ppc/ \
                        -e s/00........../pwr4/)
OSTYPE          :=      $(shell uname -s | \
                        tr '[:upper:]' '[:lower:]' | \
                        tr '/' '_' | \
                        sed \
                        -e s/freebsd/linux/ \
                        -e s/cygwin.*/cygwin/ \
                        -e s/irix../irix/ \
                        -e s/windows.*/windows/ \
                        -e s/mingw.*/mingw/)
# just some use of ARCH

BASE            =       $(OSTYPE).$(ARCH).$(COMP).$(OPT)
OBJDIR          = obj/O.$(OSTYPE).$(ARCH).$(COMP).$(LINK).$(OPT)
NAME            =       zimpl

# include looking for a non-existent file because substitution hasn't been performed, and breaking the build

include make/make.$(OSTYPE).$(ARCH).$(COMP).$(OPT)

# here go makefile targets, and it ends

reply via email to

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