Fix forced MKPIC=no builds using the trick suggested by Luke. Thanks!

This commit is contained in:
skrll 2004-03-18 19:48:15 +00:00
parent b69e81af97
commit 44e60dd983
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.6 2004/03/01 08:52:53 skrll Exp $
# $NetBSD: Makefile.inc,v 1.7 2004/03/18 19:48:15 skrll Exp $
.include <bsd.own.mk>
@ -28,7 +28,7 @@ HOSTLIBIBERTY= ${HOSTLIBIBERTYOBJ}/libiberty/libiberty.a
.include "${GCCARCH}/defs.mk"
#.if ${MKPIC} != "no"
.if ${MKPIC} != "no"
.if ${G_ENABLE_SHARED} == "yes" && ${G_SHLIB_LINK} != ""
CPPFLAGS+= -DENABLE_SHARED_LIBGCC
.endif
@ -36,4 +36,4 @@ CPPFLAGS+= -DENABLE_SHARED_LIBGCC
.if empty(G_SHLIB_MULTILIB)
CPPFLAGS+= -DNO_SHARED_LIBGCC_MULTILIB
.endif
#.endif
.endif

View File

@ -1,10 +1,12 @@
# $NetBSD: Makefile,v 1.4 2003/08/01 17:03:46 lukem Exp $
# $NetBSD: Makefile,v 1.5 2004/03/18 19:48:15 skrll Exp $
NOLINKLIB= # defined
NOLINT= # defined
NOPIC= # defined
NOPROFILE= # defined
# For ../Makefile.inc and bsd.own.mk
.include <bsd.init.mk>
LIB= frontend
SRCS= gcc.c version.c intl.c prefix.c
@ -18,6 +20,9 @@ HOST_CPPFLAGS+= -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
DPSRCS+= multilib.h specs.h
MKPIC:= no
MKPICLIB:= no
.include <bsd.lib.mk>
.PATH: ${DIST}/gcc