From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7660 invoked by alias); 12 Mar 2012 12:01:18 -0000 Received: (qmail 7649 invoked by uid 22791); 12 Mar 2012 12:01:17 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.allinea.com (HELO mail.allinea.com) (94.125.131.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Mar 2012 12:01:05 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.allinea.com (Postfix) with ESMTP id 07A4012E204 for ; Mon, 12 Mar 2012 12:01:04 +0000 (GMT) Received: from mail.allinea.com ([127.0.0.1]) by localhost (mail.allinea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5vL0aw6zS2lm for ; Mon, 12 Mar 2012 12:01:03 +0000 (GMT) Received: from [192.168.0.6] (cpc11-sotn9-2-0-cust158.15-1.cable.virginmedia.com [81.101.103.159]) (Authenticated sender: cjanuary) by mail.allinea.com (Postfix) with ESMTPSA id 9EEFA12E202 for ; Mon, 12 Mar 2012 12:01:03 +0000 (GMT) Message-ID: <1331553663.2783.17.camel@gumtree> Subject: sim/ppc/Makefile uses GNU Make specific features From: Chris January To: gdb@sourceware.org Date: Mon, 12 Mar 2012 12:01:00 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00032.txt.bz2 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