Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/busybox/, sys-apps/busybox/files/
Date: Sat, 05 Dec 2015 15:14:28
Message-Id: 1449328737.fd278f121cb0b3e4c971f48fcc81d0e2055f33fb.blueness@gentoo
1 commit: fd278f121cb0b3e4c971f48fcc81d0e2055f33fb
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 5 15:18:57 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 5 15:18:57 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=fd278f12
7
8 sys-apps/busybox: remove older stable version.
9
10 Package-Manager: portage-2.2.20.1
11
12 sys-apps/busybox/Manifest | 3 -
13 sys-apps/busybox/busybox-1.23.2-r99.ebuild | 310 ---------------------
14 .../files/busybox-1.23.1-trylink-flags.patch | 39 ---
15 3 files changed, 352 deletions(-)
16
17 diff --git a/sys-apps/busybox/Manifest b/sys-apps/busybox/Manifest
18 index 4e7d4d8..60324a4 100644
19 --- a/sys-apps/busybox/Manifest
20 +++ b/sys-apps/busybox/Manifest
21 @@ -1,5 +1,4 @@
22 AUX busybox-1.19.0-bb.patch 908 SHA256 98f92c2edbcf61d1bacef783ea8b08cce07051b0a4489ed3f4579296846f89f1 SHA512 d4024e531ce7113cf554646608b1ef356e51691e3e21d165621b3690c82b56a319867b90d9daba548b635d9dbd41be5efea63181b7123d4505e529d863a8214c WHIRLPOOL b0d6d9b08ad0930e5243c7addc8a6db61505e95ed8e72c64fbfd734cb6ff9e303b3eb8ea6ec4790b2be567783664230cf278eb3e673fa0844c3881cf993f7cb8
23 -AUX busybox-1.23.1-trylink-flags.patch 1334 SHA256 9791303d0ec22b8c97223758987c0c4fa562ace05a56be4c17837c9f1e1ce490 SHA512 5ca429047719943cde0493790c9212f1386ac1ebeb65a15b0497ac49821cac36c60f78aa9f35551af28ab21465ef4118782260636968393f19ecd27c44a6a046 WHIRLPOOL 0fb2d02660c100ab1defc03da3292a9ec055697553aeb62094f1ae933edd99fe105ba2687910197dd253b7b970673973003707479f7a4865168d39f679b12f61
24 AUX busybox-1.24.1-unzip.patch 3903 SHA256 423e7b2c9dc5614de8038e3938de6f6831e79bbd1889a9a80bef1780a2635ce8 SHA512 c6b33f1b3e8c995a8b47f6c66f068db4068a53293a6d321adb184ce2ffebff4a94c64814d80bfdf5ce103176ed6c892d4d9641f72831833672d87cefed97c472 WHIRLPOOL 8b356fb1a38697da657c0f2e47b726bc738a13d104c4169f8195646a7890f42d47fd0f217ad9943e4432b27d1fc6adad334f9ac4780f3a5ba48b6da977503c0c
25 AUX ginit.c 3097 SHA256 fd6a4715d3dd10f6db479020433da3997d397658301335c847fb779129238b8c SHA512 8bf70f13db0fbeecedf9a9f862c5391c0d8b7aa3ddd2ec85cda9b360c3117a01e32b01017b8c30197f587e521ba360ff70d1caf8d0f69d5c3a27f37ecc252e7c WHIRLPOOL a1ec3ccc296033d88a9504b693c7d249d0bd11b1d75e3f59a62137c5e4b4c914fe2b8971c86dbca2cc8ccc0d86f3f8c2c45bb44cec85a3628c44f091476baa92
26 AUX klogd.confd 218 SHA256 737b78745964e110da2fd3357c6d5fb80ccacf979039b8d40c03cf1cb969e5f3 SHA512 3348d5376b368b28d1431692a93868cd4550be12ad729340c5f78da35a5bd295e7613d70ce8ccde5029ad6d87a41c2f24155180f3570de8a9174dd63dece143f WHIRLPOOL ea28c1d926e36fba0ab69de8ddfd2503889b7cfa3a4ada347a9d22d9894fe30be068c0ed55f899b952e62b8de3cb69e1a4209f7864787988ded28ede10c7445a
27 @@ -18,8 +17,6 @@ AUX syslogd.confd 234 SHA256 65166088cb173582200b8c0d3bc6ea339b5929dbafa816780bf
28 AUX syslogd.initd 383 SHA256 b66e709317513b79139d5441c712839e271ff5177a3d743b86e39f70906fe2ee SHA512 b6bd8b7cb990c7c9c242baf4b3d20b3351e6ca0054b6d231787540b318ea9ac2332ac97ae4b56d07d2cf9ae52fb9c1644dede47bbfdd9f8bc7727bcfd0da8ed7 WHIRLPOOL 4b7a3e4ad7cc9e07853cc0e43b8f15aa0cb71642afeee89392190ba75d547e156ec4b790f8e35e56851bae01ff3965ef36e9160bf61aae95376c9fa2189f11a7
29 AUX watchdog.confd 232 SHA256 786d9497ad55c29d6fff231709e71ecad94f2ee1de3b45b461deb29c3eba1c63 SHA512 8fd7121075535195f3e5d43ec773713c883fb7865cd5e5927b3b20c2605c50acb81d50461bd1a246c1282006ce74b11932ac1cec67ddc2be15da2f9aa8674232 WHIRLPOOL 8ea0f6b759198c978f10bf0b2b00cc73343e72401a05edf257b9c5e1032e8a619328aaa02936b5b5a717a021baa84b5653b8c9826e14e5c07c7b7af98f878767
30 AUX watchdog.initd 334 SHA256 ae335a9540d282277d0a127673efff279177a1bb643e98afd772eef9423fe79f SHA512 e915a2b5567b1cfe5423b00ca984c37dea4afd72bc3b7a550858f7140dc18283831bb9cfeeb564ced2669706cf747f3934fd339f9e93d456b229b03781ac9303 WHIRLPOOL c57eaf47d0501394f2f08a6b6f09529f91fd34f3d5027f6e159573ea8c5321a88c2cb01511971d15f8b25c9a44693c88e340ee35949c4cdab49d7fbbbe064c22
31 -DIST busybox-1.23.2.tar.bz2 2252786 SHA256 05a6f9e21aad8c098e388ae77de7b2361941afa7157ef74216703395b14e319a SHA512 209c8ef26e40ccb81510f6b663202b080f9bbecac7faf386bbabf7e36a43d63b15dd6ce9f7a84c1ccc5345c524999812251da1e113ef9faadc6af1fedd24c7c9 WHIRLPOOL a0396f7f49ae702f1617e72d5d4646aceec4eba67219c7125bd8d0926d1acb1ef41ea15a7406c3cf5e5e0d8925cc75910ed5128e5fbdd257b80e2cb4f7a048a2
32 DIST busybox-1.24.1.tar.bz2 2068803 SHA256 37d03132cc078937360b392170b7a1d0e5b322eee9f57c0b82292a8b1f0afe3d SHA512 3afc757ebaae61ae13c2c69097ee734717434f9e658eb77093a8b7b49af3326cbca2d723483ff84a1da99544b822fd2b47d9a97c68f09962e11754e5daf124ca WHIRLPOOL 5e827d08d737caac832e7e5923da624094ff27ee2edbb46dadc339e95edba65378a8fa3db412682724476a2092eee41a804f8f36c2eec0b9f883f5ba855f3ad0
33 -EBUILD busybox-1.23.2-r99.ebuild 8889 SHA256 395dec4ab6daeca4206d4b3ee45a901fbeee32a5c8faa516bb2abf98dc0b3e7d SHA512 3853b2c04731a67a55275217b9eee79effde01352c4e261721dca8b7e31b5c594ad275524464291b5bdcbd306dc17c8f7167411beb310815da03c7cfdebb3fe0 WHIRLPOOL 26e7e3b94139010f74d95e68b1329c75c6716429ec6b5dc72e2c9ad82c8ab052d74b3db25e651e37138021c3fada808a5820f7a1a9ec6e3761c74fa26a056a02
34 EBUILD busybox-1.24.1-r99.ebuild 8806 SHA256 78cb413fffb1bf9b9da50ed3373672b07fea7ac40ced778e52710f0a1f365834 SHA512 6d8b480c5dcc9c45cb0d3572799962eba8d024e94dbf97d593ff7e8cd17fa878fb729ed243bcd4382e75e80c911991f116c0ba987e1700651bfe4a09e1cc2434 WHIRLPOOL 6840d74b1150bb75209144e9062d52be49c9b46d8f5f45e69ce8996d3f2e867ae1eda9f4c470d7641bf4066c883b7589ae0414843aebd1ceca900fa2286e364c
35 MISC metadata.xml 708 SHA256 e17f2240f57d74f8847e7bbf4e3cf44fdcd3ab3f610e0a66eb186d2a598178be SHA512 0d26c0593b156cc5764ad03c64e9b2a724b3877e348787d57818aec6b32f995951a9c0976a92d6ba824a2a5983d0c88116b9d335e51ba0e3c7b8f89e579482ba WHIRLPOOL 2ab4758748cf6d83d1a3a1d2f5f9472825a01affe5c7fdf8cd78fb9c75a1abaf18d8895fce12c7c502453caf68dd40799f47cce502804c9ec60705af2bb4f388
36
37 diff --git a/sys-apps/busybox/busybox-1.23.2-r99.ebuild b/sys-apps/busybox/busybox-1.23.2-r99.ebuild
38 deleted file mode 100644
39 index f92920e..0000000
40 --- a/sys-apps/busybox/busybox-1.23.2-r99.ebuild
41 +++ /dev/null
42 @@ -1,310 +0,0 @@
43 -# Copyright 1999-2015 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.23.1-r1.ebuild,v 1.3 2015/02/08 22:35:39 blueness Exp $
46 -
47 -# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
48 -
49 -EAPI="4"
50 -inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
51 -
52 -DESCRIPTION="Utilities for rescue and embedded systems"
53 -HOMEPAGE="http://www.busybox.net/"
54 -if [[ ${PV} == "9999" ]] ; then
55 - MY_P=${PN}
56 - EGIT_REPO_URI="git://busybox.net/busybox.git"
57 - inherit git-2
58 -else
59 - MY_P=${PN}-${PV/_/-}
60 - SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2"
61 - KEYWORDS="amd64 arm ~mips ppc x86"
62 -fi
63 -
64 -LICENSE="GPL-2"
65 -SLOT="0"
66 -IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd"
67 -RESTRICT="test"
68 -
69 -COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
70 - pam? ( sys-libs/pam )"
71 -DEPEND="${COMMON_DEPEND}
72 - static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
73 - >=sys-kernel/linux-headers-2.6.39"
74 -RDEPEND="${COMMON_DEPEND}
75 -mdev? ( !<sys-apps/openrc-0.13 )"
76 -
77 -S=${WORKDIR}/${MY_P}
78 -
79 -busybox_config_option() {
80 - local flag=$1 ; shift
81 - if [[ ${flag} != [yn] ]] ; then
82 - busybox_config_option $(usex ${flag} y n) "$@"
83 - return
84 - fi
85 - while [[ $# -gt 0 ]] ; do
86 - if [[ ${flag} == "y" ]] ; then
87 - sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
88 - else
89 - sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config
90 - fi
91 - einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...)
92 - shift
93 - done
94 -}
95 -
96 -busybox_config_enabled() {
97 - local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
98 - case ${val} in
99 - "") return 1 ;;
100 - y) return 0 ;;
101 - *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
102 - esac
103 -}
104 -
105 -src_prepare() {
106 - unset KBUILD_OUTPUT #88088
107 - append-flags -fno-strict-aliasing #310413
108 - use ppc64 && append-flags -mminimal-toc #130943
109 -
110 - # patches go here!
111 - epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
112 - epatch "${FILESDIR}"/${PN}-1.23.1-trylink-flags.patch
113 - # No busybox-1.23.2 specific patches ... yet!
114 - #epatch "${FILESDIR}"/${P}-*.patch
115 - cp "${FILESDIR}"/ginit.c init/ || die
116 -
117 - # flag cleanup
118 - sed -i -r \
119 - -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \
120 - Makefile.flags || die
121 - #sed -i '/bbsh/s:^//::' include/applets.h
122 - sed -i '/^#error Aborting compilation./d' applets/applets.c || die
123 - use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
124 - sed -i \
125 - -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
126 - -e "/^AR\>/s:=.*:= $(tc-getAR):" \
127 - -e "/^CC\>/s:=.*:= $(tc-getCC):" \
128 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
129 - -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
130 - Makefile || die
131 - sed -i \
132 - -e 's:-static-libgcc::' \
133 - Makefile.flags || die
134 -}
135 -
136 -src_configure() {
137 - # check for a busybox config before making one of our own.
138 - # if one exist lets return and use it.
139 -
140 - restore_config .config
141 - if [ -f .config ]; then
142 - yes "" | emake -j1 -s oldconfig >/dev/null
143 - return 0
144 - else
145 - ewarn "Could not locate user configfile, so we will save a default one"
146 - fi
147 -
148 - # setup the config file
149 - emake -j1 -s allyesconfig >/dev/null
150 - # nommu forces a bunch of things off which we want on #387555
151 - busybox_config_option n NOMMU
152 - sed -i '/^#/d' .config
153 - yes "" | emake -j1 -s oldconfig >/dev/null
154 -
155 - # now turn off stuff we really don't want
156 - busybox_config_option n DMALLOC
157 - busybox_config_option n FEATURE_SUID_CONFIG
158 - busybox_config_option n BUILD_AT_ONCE
159 - busybox_config_option n BUILD_LIBBUSYBOX
160 - busybox_config_option n FEATURE_CLEAN_UP
161 - busybox_config_option n MONOTONIC_SYSCALL
162 - busybox_config_option n START_STOP_DAEMON
163 - busybox_config_option n USE_PORTABLE_CODE
164 - busybox_config_option n WERROR
165 -
166 - # causes trouble with musl
167 - busybox_config_option n IFPLUGD
168 - busybox_config_option n EXTRA_COMPAT
169 - busybox_config_option n FEATURE_VI_REGEX_SEARCH
170 -
171 - # If these are not set and we are using a uclibc/busybox setup
172 - # all calls to system() will fail.
173 - busybox_config_option y ASH
174 - busybox_config_option n HUSH
175 -
176 - # disable ipv6 applets
177 - if ! use ipv6; then
178 - busybox_config_option n FEATURE_IPV6
179 - busybox_config_option n TRACEROUTE6
180 - busybox_config_option n PING6
181 - busybox_config_option n UDHCPC6
182 - fi
183 -
184 - if use static && use pam ; then
185 - ewarn "You cannot have USE='static pam'. Assuming static is more important."
186 - fi
187 - busybox_config_option $(usex static n pam) PAM
188 - busybox_config_option static STATIC
189 - busybox_config_option syslog {K,SYS}LOGD LOGGER
190 - busybox_config_option systemd FEATURE_SYSTEMD
191 - busybox_config_option math FEATURE_AWK_LIBM
192 -
193 - # all the debug options are compiler related, so punt them
194 - busybox_config_option n DEBUG
195 - busybox_config_option y NO_DEBUG_LIB
196 - busybox_config_option n DMALLOC
197 - busybox_config_option n EFENCE
198 - busybox_config_option $(usex debug y n) TFTP_DEBUG
199 -
200 - busybox_config_option selinux SELINUX
201 -
202 - # this opt only controls mounting with <linux-2.6.23
203 - busybox_config_option n FEATURE_MOUNT_NFS
204 -
205 - # default a bunch of uncommon options to off
206 - local opt
207 - for opt in \
208 - ADD_SHELL \
209 - BEEP BOOTCHARTD \
210 - CRONTAB \
211 - DC DEVFSD DNSD DPKG{,_DEB} \
212 - FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
213 - FEATURE_DEVFS \
214 - HOSTID HUSH \
215 - INETD INOTIFYD IPCALC \
216 - LOCALE_SUPPORT LOGNAME LPD \
217 - MAKEMIME MKFS_MINIX MSH \
218 - OD \
219 - RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS RUNSV{,DIR} \
220 - SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
221 - TASKSET TCPSVD \
222 - RPM RPM2CPIO \
223 - UDPSVD UUDECODE UUENCODE
224 - do
225 - busybox_config_option n ${opt}
226 - done
227 -
228 - emake -j1 oldconfig > /dev/null
229 -}
230 -
231 -src_compile() {
232 - unset KBUILD_OUTPUT #88088
233 - export SKIP_STRIP=y
234 -
235 - emake V=1 busybox
236 -}
237 -
238 -src_install() {
239 - unset KBUILD_OUTPUT #88088
240 - save_config .config
241 -
242 - into /
243 - dodir /bin
244 - if use sep-usr ; then
245 - # install /ginit to take care of mounting stuff
246 - exeinto /
247 - newexe busybox_unstripped ginit
248 - dosym /ginit /bin/bb
249 - dosym bb /bin/busybox
250 - else
251 - newbin busybox_unstripped busybox
252 - dosym busybox /bin/bb
253 - fi
254 - if use mdev ; then
255 - dodir /$(get_libdir)/mdev/
256 - use make-symlinks || dosym /bin/bb /sbin/mdev
257 - cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
258 -
259 - exeinto /$(get_libdir)/mdev/
260 - doexe "${FILESDIR}"/mdev/*
261 -
262 - newinitd "${FILESDIR}"/mdev.initd mdev
263 - fi
264 - if use livecd ; then
265 - dosym busybox /bin/vi
266 - fi
267 -
268 - # add busybox daemon's, bug #444718
269 - if busybox_config_enabled FEATURE_NTPD_SERVER; then
270 - newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
271 - newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
272 - fi
273 - if busybox_config_enabled SYSLOGD; then
274 - newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
275 - newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
276 - fi
277 - if busybox_config_enabled KLOGD; then
278 - newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
279 - newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
280 - fi
281 - if busybox_config_enabled WATCHDOG; then
282 - newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
283 - newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
284 - fi
285 - if busybox_config_enabled UDHCPC; then
286 - local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
287 - exeinto "${path%/*}"
288 - newexe examples/udhcp/simple.script "${path##*/}"
289 - fi
290 - if busybox_config_enabled UDHCPD; then
291 - insinto /etc
292 - doins examples/udhcp/udhcpd.conf
293 - fi
294 -
295 - # bundle up the symlink files for use later
296 - emake DESTDIR="${ED}" install
297 - rm _install/bin/busybox
298 - # for compatibility, provide /usr/bin/env
299 - mkdir -p _install/usr/bin
300 - ln -s /bin/env _install/usr/bin/env
301 - tar cf busybox-links.tar -C _install . || : #;die
302 - insinto /usr/share/${PN}
303 - use make-symlinks && doins busybox-links.tar
304 -
305 - dodoc AUTHORS README TODO
306 -
307 - cd docs
308 - docinto txt
309 - dodoc *.txt
310 - docinto pod
311 - dodoc *.pod
312 - dohtml *.html
313 -
314 - cd ../examples
315 - docinto examples
316 - dodoc inittab depmod.pl *.conf *.script undeb unrpm
317 -}
318 -
319 -pkg_preinst() {
320 - if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then
321 - ewarn "setting USE=make-symlinks and emerging to / is very dangerous."
322 - ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)."
323 - ewarn "If you are creating a binary only and not merging this is probably ok."
324 - ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want."
325 - die "silly options will destroy your system"
326 - fi
327 -
328 - if use make-symlinks ; then
329 - mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
330 - fi
331 -}
332 -
333 -pkg_postinst() {
334 - savedconfig_pkg_postinst
335 -
336 - if use make-symlinks ; then
337 - cd "${T}" || die
338 - mkdir _install
339 - tar xf busybox-links.tar -C _install || die
340 - cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed"
341 - fi
342 -
343 - if use sep-usr ; then
344 - elog "In order to use the sep-usr support, you have to update your"
345 - elog "kernel command line. Add the option:"
346 - elog " init=/ginit"
347 - elog "To launch a different init than /sbin/init, use:"
348 - elog " init=/ginit /sbin/yourinit"
349 - elog "To get a rescue shell, you may boot with:"
350 - elog " init=/ginit bb"
351 - fi
352 -}
353
354 diff --git a/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch b/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch
355 deleted file mode 100644
356 index 13725cb..0000000
357 --- a/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch
358 +++ /dev/null
359 @@ -1,39 +0,0 @@
360 -From 6798564b9e2f1a81b8c2d0cb4add97cb736d982b Mon Sep 17 00:00:00 2001
361 -From: Mike Frysinger <vapier@g.o>
362 -Date: Mon, 16 Mar 2015 17:47:01 -0400
363 -Subject: [PATCH] trylink: respect compiler settings when probing features
364 -
365 -The CPPFLAGS/CFLAGS settings might have features that matter, so make
366 -sure we utilize them when testing the compiler.
367 -
368 -URL: https://bugs.gentoo.org/471118
369 -Signed-off-by: Mike Frysinger <vapier@g.o>
370 ----
371 - scripts/trylink | 4 ++--
372 - 1 file changed, 2 insertions(+), 2 deletions(-)
373 -
374 -diff --git a/scripts/trylink b/scripts/trylink
375 -index 5a67fcf..48c487b 100755
376 ---- a/scripts/trylink
377 -+++ b/scripts/trylink
378 -@@ -49,7 +49,7 @@ check_cc() {
379 - local tempname="$(mktemp)"
380 - # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :(
381 - # "-xc": C language. "/dev/null" is an empty source file.
382 -- if $CC $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then
383 -+ if $CC $CPPFLAGS $CFLAGS $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then
384 - echo "$1";
385 - else
386 - echo "$2";
387 -@@ -66,7 +66,7 @@ check_libc_is_glibc() {
388 - syntax error here
389 - #endif
390 - " >"$tempname".c
391 -- if $CC "$tempname".c -c -o "$tempname".o >/dev/null 2>&1; then
392 -+ if $CC $CPPFLAGS $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 2>&1; then
393 - echo "$2";
394 - else
395 - echo "$1";
396 ---
397 -2.3.2
398 -