Fixed Makefiles to support Ubuntu 12.04

This commit is contained in:
Nicholas Kirchner 2013-08-22 20:33:51 -05:00
parent 816a29d8be
commit 3b517a294c
2 changed files with 5 additions and 5 deletions

View file

@ -169,10 +169,10 @@ endif
ifdef QEMU_OLD
$(TARGET): $(OBJS) $(VVFATOBJS) $(QEMU)/arm-softmmu/libqemu.a
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(VVFATOBJS) $(LDLIBS)
$(CC) -Wl,--no-as-needed $(LDFLAGS) -o $@ $(OBJS) $(VVFATOBJS) $(LDLIBS)
else
$(TARGET): $(OBJS) $(VVFATOBJS) $(X49GP_LIBS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(VVFATOBJS) $(LDLIBS)
$(CC) -Wl,--no-as-needed $(LDFLAGS) -o $@ $(OBJS) $(VVFATOBJS) $(LDLIBS)
endif
flash-49g+: $(BOOT49GP) flash-noboot

View file

@ -777,9 +777,9 @@ if test -z "$zero_malloc" ; then
fi
fi
if test "$werror" = "yes" ; then
QEMU_CFLAGS="-Werror $QEMU_CFLAGS"
fi
#if test "$werror" = "yes" ; then
# QEMU_CFLAGS="-Werror $QEMU_CFLAGS"
#fi
if test "$solaris" = "no" ; then
if $ld --version 2>/dev/null | grep "GNU ld" >/dev/null 2>/dev/null ; then