clang ifunc's on powerpc require secure-plt.

This commit is contained in:
christos 2019-05-14 19:07:07 +00:00
parent e201e655df
commit 292b510fe2
2 changed files with 6 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.9 2017/07/11 15:21:36 joerg Exp $
# $NetBSD: Makefile,v 1.10 2019/05/14 19:07:07 christos Exp $
#
NOMAN= # defined
.include "Makefile.inc"
.include <bsd.own.mk>
.if ${MKPIC} != "no"

View File

@ -1 +1,5 @@
.include "../Makefile.inc"
.if ${MACHINE_ARCH} == "powerpc"
CFLAGS += -msecure-plt
.endif