public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* sim/ppc/Makefile uses GNU Make specific features
@ 2012-03-12 12:01 Chris January
  2012-03-12 14:42 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Chris January @ 2012-03-12 12:01 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sim/ppc/Makefile uses GNU Make specific features
  2012-03-12 12:01 sim/ppc/Makefile uses GNU Make specific features Chris January
@ 2012-03-12 14:42 ` Mike Frysinger
  2012-03-12 15:37   ` Chris January
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2012-03-12 14:42 UTC (permalink / raw)
  To: gdb; +Cc: Chris January

[-- Attachment #1: Type: Text/Plain, Size: 237 bytes --]

On Monday 12 March 2012 08:01:03 Chris January wrote:
> sim/ppc/Makefile uses GNU Make specific features but doesn't test for
> GNU make in configure:

bug reports probably would be better placed in bugzilla so they don't get lost
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sim/ppc/Makefile uses GNU Make specific features
  2012-03-12 14:42 ` Mike Frysinger
@ 2012-03-12 15:37   ` Chris January
  0 siblings, 0 replies; 3+ messages in thread
From: Chris January @ 2012-03-12 15:37 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: gdb

On Mon, 2012-03-12 at 10:42 -0400, Mike Frysinger wrote:
> On Monday 12 March 2012 08:01:03 Chris January wrote:
> > sim/ppc/Makefile uses GNU Make specific features but doesn't test for
> > GNU make in configure:
> 
> bug reports probably would be better placed in bugzilla so they don't get lost
> -mike

Done:

http://sourceware.org/bugzilla/show_bug.cgi?id=13834

Chris


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-12 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 12:01 sim/ppc/Makefile uses GNU Make specific features Chris January
2012-03-12 14:42 ` Mike Frysinger
2012-03-12 15:37   ` Chris January

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).