Add different libc ldscript: the one without libssp --

we don't have it when MK_SSP==no.

This fixes compilation on MIPS.

Reviewed by:	imp
Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
Differential Revision:	https://reviews.freebsd.org/D8212
This commit is contained in:
Ruslan Bukin 2016-10-12 13:19:21 +00:00
parent c874ff0f63
commit 32797df534
2 changed files with 6 additions and 0 deletions

View File

@ -29,7 +29,11 @@ LIBC_ARCH=${MACHINE_CPUARCH}
# to CFLAGS below. -DSYSLIBC_SCCS affects just the system call stubs. # to CFLAGS below. -DSYSLIBC_SCCS affects just the system call stubs.
LIB=c LIB=c
SHLIB_MAJOR= 7 SHLIB_MAJOR= 7
.if ${MK_SSP} != "no"
SHLIB_LDSCRIPT=libc.ldscript SHLIB_LDSCRIPT=libc.ldscript
.else
SHLIB_LDSCRIPT=libc_nossp.ldscript
.endif
SHLIB_LDSCRIPT_LINKS=libxnet.so SHLIB_LDSCRIPT_LINKS=libxnet.so
WARNS?= 2 WARNS?= 2
CFLAGS+=-I${LIBC_SRCTOP}/include -I${LIBC_SRCTOP}/../../include CFLAGS+=-I${LIBC_SRCTOP}/include -I${LIBC_SRCTOP}/../../include

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
GROUP ( @@SHLIB@@ @@LIBDIR@@/libc_nonshared.a )