don't include solib.h if the system is sh3&&(!ELF)

This commit is contained in:
msaitoh 2000-08-02 17:46:20 +00:00
parent 1ae072f471
commit 27f9ec8b7e
2 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define PTRACE_ARG3_TYPE char*
#if !defind(NO_SOLIB)
#include "solib.h" /* Support for shared libraries. */
#endif
#ifndef SVR4_SHARED_LIBS
/* The NetBSD link.h structure definitions have different names

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.40 2000/07/08 19:18:19 eeh Exp $
# $NetBSD: Makefile,v 1.41 2000/08/02 17:46:20 msaitoh Exp $
# for OBJECT_FMT
.include <bsd.own.mk>
@ -22,6 +22,10 @@ CPPFLAGS+= -I. -I${.CURDIR} -I${DIST}/gdb/config -I${DIST}/gdb \
CPPFLAGS+= -DSVR4_SHARED_LIBS
.endif
.if ({MACHINE_ARCH} == "sh3") && (${OBJECT_FMT} != "ELF")
CPPFLAGS+= -DNO_SOLIB
.endif
LDADD+= -ledit -lkvm -ltermcap -L${BFDOBJ} -lbfd
DPADD+= ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${BFDOBJ}/libbfd_pic.a