Merge head
This commit is contained in:
+5
-1
@@ -8,9 +8,13 @@ SUBDIR= csu libgcc libgcov libdialog libgomp libregex libreadline
|
||||
SUBDIR+= libssp
|
||||
.endif
|
||||
|
||||
.if ${MK_TESTS} != "no"
|
||||
SUBDIR+= tests
|
||||
.endif
|
||||
|
||||
# libsupc++ uses libstdc++ headers, although 'make includes' should
|
||||
# have taken care of that already.
|
||||
.if ${MK_GNUCXX} != "no"
|
||||
.if ${MK_GNUCXX} != "no" && ${MK_CXX} != "no"
|
||||
SUBDIR+= libstdc++ libsupc++
|
||||
.endif
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ OBJS= crtbegin.o crtend.o crtbeginT.o
|
||||
SOBJS= crtbeginS.o crtendS.o
|
||||
CSTD?= gnu89
|
||||
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
|
||||
CFLAGS+= -finhibit-size-directive -fno-inline-functions \
|
||||
-fno-exceptions -fno-zero-initialized-in-bss \
|
||||
-fno-zero-initialized-in-bss -fno-toplevel-reorder \
|
||||
-fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
||||
CFLAGS.gcc+= -finhibit-size-directive -fno-toplevel-reorder
|
||||
CFLAGS+= -fno-inline-functions -fno-exceptions \
|
||||
-fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables \
|
||||
-fno-omit-frame-pointer
|
||||
CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
|
||||
-I${CCDIR}/cc_tools
|
||||
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
|
||||
|
||||
+8
-10
@@ -34,9 +34,9 @@ OBJS= # added to below in various ways depending on TARGET_CPUARCH
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
#
|
||||
# When upgrading GCC, get the following defintions straight from Makefile.in
|
||||
#
|
||||
# Library members defined in libgcc2.c.
|
||||
# When upgrading GCC, obtain the following list from mklibgcc.in
|
||||
#
|
||||
LIB2FUNCS= _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 \
|
||||
_cmpdi2 _ucmpdi2 \
|
||||
_enable_execute_stack _trampoline __main _absvsi2 _absvdi2 _addvsi3 \
|
||||
@@ -44,7 +44,7 @@ LIB2FUNCS= _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 \
|
||||
_ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 _ctzsi2 _ctzdi2 _popcount_tab \
|
||||
_popcountsi2 _popcountdi2 _paritysi2 _paritydi2 _powisf2 _powidf2 \
|
||||
_powixf2 _powitf2 _mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 \
|
||||
_divxc3 _divtc3
|
||||
_divxc3 _divtc3 _bswapsi2 _bswapdi2
|
||||
.if ${COMPILER_TYPE} != "clang" || ${TARGET_CPUARCH} != "arm"
|
||||
LIB2FUNCS+= _clear_cache
|
||||
.endif
|
||||
@@ -112,17 +112,15 @@ LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
|
||||
.if ${TARGET_CPUARCH} == "arm"
|
||||
# from config/arm/t-strongarm-elf
|
||||
CFLAGS+= -Dinhibit_libc -fno-inline
|
||||
.if ${COMPILER_TYPE} == "clang"
|
||||
CFLAGS+= -fheinous-gnu-extensions
|
||||
.endif
|
||||
CFLAGS.clang+= -fheinous-gnu-extensions
|
||||
|
||||
LIB1ASMSRC = lib1funcs.asm
|
||||
LIB1ASMFUNCS = _dvmd_tls _bb_init_func
|
||||
.if ${MK_ARM_EABI} != "no"
|
||||
LIB2ADDEH = unwind-arm.c libunwind.S pr-support.c unwind-c.c
|
||||
# Some compilers generate __aeabi_ functions libgcc_s is missing
|
||||
DPADD+= ${LIBGCC}
|
||||
LDADD+= -lgcc
|
||||
DPADD+= ${LIBCOMPILER_RT}
|
||||
LDADD+= -lcompiler_rt
|
||||
.else
|
||||
LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
|
||||
.endif
|
||||
@@ -354,7 +352,7 @@ libgcc_eh.a: ${EH_OBJS_T}
|
||||
@${ECHO} building static gcc_eh library
|
||||
@rm -f ${.TARGET}
|
||||
@${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_T} | tsort -q`
|
||||
${RANLIB} ${.TARGET}
|
||||
${RANLIB} ${RANLIBFLAGS} ${.TARGET}
|
||||
|
||||
all: libgcc_eh.a
|
||||
|
||||
@@ -363,7 +361,7 @@ libgcc_eh_p.a: ${EH_OBJS_P}
|
||||
@${ECHO} building profiled gcc_eh library
|
||||
@rm -f ${.TARGET}
|
||||
@${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_P} | tsort -q`
|
||||
${RANLIB} ${.TARGET}
|
||||
${RANLIB} ${RANLIBFLAGS} ${.TARGET}
|
||||
all: libgcc_eh_p.a
|
||||
.endif
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NO_PROFILE=
|
||||
.include <bsd.own.mk>
|
||||
MK_PROFILE= no
|
||||
MK_SSP= no
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${.CURDIR}/../../usr.bin/cc/Makefile.tgt"
|
||||
|
||||
GCCDIR= ${.CURDIR}/../../../contrib/gcc
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
|
||||
SHLIBDIR?= /lib
|
||||
|
||||
.include <bsd.own.mk>
|
||||
MK_PROFILE= no
|
||||
MK_SSP= no
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
GCCDIR= ${.CURDIR}/../../../contrib/gcc
|
||||
GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
|
||||
SRCDIR= ${GCCLIB}/libssp
|
||||
@@ -13,7 +15,6 @@ SRCDIR= ${GCCLIB}/libssp
|
||||
|
||||
LIB= ssp
|
||||
SHLIB_MAJOR= 0
|
||||
NO_PROFILE=
|
||||
|
||||
SRCS= ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
|
||||
memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
|
||||
|
||||
@@ -7,7 +7,7 @@ GCCLIB= ${.CURDIR}/../../../../contrib/gcclibs
|
||||
|
||||
LIB= ssp_nonshared
|
||||
NO_PIC=
|
||||
NO_PROFILE=
|
||||
MK_PROFILE=no
|
||||
|
||||
SRCS= ssp-local.c
|
||||
|
||||
|
||||
@@ -637,6 +637,4 @@ CLEANFILES+= ${VERSION_MAP}
|
||||
# Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
|
||||
CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
|
||||
|
||||
.if ${COMPILER_TYPE} == "clang"
|
||||
CXXFLAGS+= -stdlib=libstdc++
|
||||
.endif
|
||||
CXXFLAGS.clang+= -stdlib=libstdc++
|
||||
|
||||
@@ -57,6 +57,4 @@ VERSION_MAP= ${.CURDIR}/Version.map
|
||||
# Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
|
||||
CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
|
||||
|
||||
.if ${COMPILER_TYPE} == "clang"
|
||||
CXXFLAGS+= -stdlib=libstdc++
|
||||
.endif
|
||||
CXXFLAGS.clang+= -stdlib=libstdc++
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
TESTSDIR= ${TESTSBASE}/gnu/lib
|
||||
|
||||
.PATH: ${.CURDIR:H:H:H}/tests
|
||||
KYUAFILE= yes
|
||||
|
||||
.include <bsd.test.mk>
|
||||
Reference in New Issue
Block a user