forked from Imagelibrary/binutils-gdb
* gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of $(CC), rather than assuming that $(AS) is always the GNU assembler.
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
EXECUTABLES = hppa
|
||||
hppa: hppa.s
|
||||
$(AS) $(ASFLAGS) $(srcdir)/hppa.s -o hppa.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o hppa hppa.o $(LIBS)
|
||||
if $(CC) -c $(srcdir)/hppa.s 2>errs; then \
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o hppa hppa.o $(LIBS); \
|
||||
true; \
|
||||
else \
|
||||
if grep 'Opcode not defined - DIAG' errs \
|
||||
>/dev/null; then \
|
||||
echo HP assembler in use--skipping disasm tests; true; \
|
||||
else \
|
||||
cat errs; false; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user