Diff newlib-4.2.0.20211231-r1 with a newlib-4.3.0.20230120-r1

/usr/portage/sys-libs/newlib/newlib-4.3.0.20230120-r1.ebuild 2023-10-09 14:52:35.560368503 +0300
37 37
NEWLIBNANOBUILD="${WORKDIR}/build.nano"
38 38
NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
39 39

  
40
# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
41
# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
42
# Currently newlib can't be built itself when _FORTIFY_SOURCE
43
# is set.
44
CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
45
CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
40
CFLAGS_FULL="-ffunction-sections -fdata-sections"
41
CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
46 42

  
47 43
pkg_setup() {
48 44
	# Reject newlib-on-glibc type installs
......
71 67
	CFLAGS_ORIG="${CFLAGS}"
72 68

  
73 69
	local myconf=(
70
		# The top-level configure doesn't utilize this flag, but subdirs do,
71
		# so autodetection for econf doesn't work.  Add ourselves.
72
		--disable-silent-rules
74 73
		# Disable legacy syscall stub code in newlib.  These have been
75 74
		# moved to libgloss for a long time now, so the code in newlib
76 75
		# itself just gets in the way.
......
129 128

  
130 129
src_install() {
131 130
	cd "${NEWLIBBUILD}" || die
132
	emake -j1 DESTDIR="${D}" install
131
	emake DESTDIR="${D}" install
133 132

  
134 133
	if use nano ; then
135 134
		cd "${NEWLIBNANOBUILD}" || die
136
		emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
135
		emake DESTDIR="${NEWLIBNANOTMPINSTALL}" install
137 136
		# Rename nano lib* files to lib*_nano and move to the real ${D}
138 137
		local nanolibfiles=""
139 138
		nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|m\|rdimon\|gloss\)\.a" -print)
Thank you!