cygwin: create libssp compatibility import library

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2017-11-27 23:56:30 -06:00
parent 6a848db442
commit 552a20ab4e
1 changed files with 4 additions and 1 deletions

View File

@ -540,7 +540,7 @@ endif
API_VER:=$(srcdir)/include/cygwin/version.h API_VER:=$(srcdir)/include/cygwin/version.h
LIB_NAME:=libcygwin.a LIB_NAME:=libcygwin.a
SUBLIBS:=libpthread.a libutil.a ${CURDIR}/libm.a ${CURDIR}/libc.a libdl.a libresolv.a librt.a libacl.a SUBLIBS:=libpthread.a libutil.a ${CURDIR}/libm.a ${CURDIR}/libc.a libdl.a libresolv.a librt.a libacl.a libssp.a
EXTRALIBS:=libautomode.a libbinmode.a libtextmode.a libtextreadmode.a EXTRALIBS:=libautomode.a libbinmode.a libtextmode.a libtextreadmode.a
INSTOBJS:=automode.o binmode.o textmode.o textreadmode.o INSTOBJS:=automode.o binmode.o textmode.o textreadmode.o
TARGET_LIBS:=$(LIB_NAME) $(CYGWIN_START) $(GMON_START) $(LIBGMON_A) $(SUBLIBS) $(INSTOBJS) $(EXTRALIBS) TARGET_LIBS:=$(LIB_NAME) $(CYGWIN_START) $(GMON_START) $(LIBGMON_A) $(SUBLIBS) $(INSTOBJS) $(EXTRALIBS)
@ -745,6 +745,9 @@ librt.a: ${LIB_NAME} posix_ipc.o
libacl.a: ${LIB_NAME} sec_posixacl.o libacl.a: ${LIB_NAME} sec_posixacl.o
${speclib} ${@F} ${speclib} ${@F}
libssp.a: ${LIB_NAME} $(newlib_build)/libc/ssp/lib.a
${speclib} ${@F}
${EXTRALIBS}: lib%.a: %.o ${EXTRALIBS}: lib%.a: %.o
$(AR) cru $@ $? $(AR) cru $@ $?