Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Chris January <chris.january@allinea.com>
To: gdb@sourceware.org
Subject: sim/ppc/Makefile uses GNU Make specific features
Date: Mon, 12 Mar 2012 12:01:00 -0000	[thread overview]
Message-ID: <1331553663.2783.17.camel@gumtree> (raw)

sim/ppc/Makefile uses GNU Make specific features but doesn't test for
GNU make in configure:

1. $< used in a non-default rule:

gentmap: ../common/gentmap.c
        $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I
$(srcdir)/../common -o gentmap $< $(BUILD_LIBS)

From the autoconf manual:

"Posix says that the ‘$<’ construct in makefiles can be used only in
inference rules and in the ‘.DEFAULT’ rule; its meaning in ordinary
rules is unspecified. Solaris make for instance replaces it with the
empty string. OpenBSD (3.0 and later) make diagnoses these uses and
errors out. "

Result (on AIX, with AIX make):

        gcc -g -O2 -I. -I. -I./../../include -I../../bfd -I./../../bfd
-I../../gdb -I./../../gdb  -I./../../gdb/config  -I. -I../common
-I./../common -o gentmap  
gcc: no input files
make: 1254-004 The error code from the last command is 1.

2. psim depends on -lz, which is not a real file:

LIBS = -lz

psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS)
$(LIBINTL_DEP)

Result (again, with AIX make):

make: 1254-002 Cannot find a rule to create target -lz from
dependencies.
Stop.

Chris



             reply	other threads:[~2012-03-12 12:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 12:01 Chris January [this message]
2012-03-12 14:42 ` Mike Frysinger
2012-03-12 15:37   ` Chris January

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331553663.2783.17.camel@gumtree \
    --to=chris.january@allinea.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox