toolchain: Allow external toolchains to specify libthread-db
[openwrt/openwrt.git] / package / libs / toolchain / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 PKG_NAME:=toolchain
10 PKG_RELEASE:=1
11
12 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
13 PKG_LICENSE:=GPL-3.0-with-GCC-exception
14
15 PKG_FLAGS:=hold essential nonshared
16
17 include $(INCLUDE_DIR)/package.mk
18
19 ifneq ($(DUMP),1)
20 LIBGCC_VERSION:=$(GCC_VERSION)
21 else
22 LIBC_VERSION:=<LIBC_VERSION>
23 LIBGCC_VERSION:=<LIBGCC_VERSION>
24 endif
25
26 define Package/gcc/Default
27 SECTION:=libs
28 CATEGORY:=Base system
29 URL:=http://gcc.gnu.org/
30 VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
31 endef
32
33 define Package/libgcc
34 $(call Package/gcc/Default)
35 TITLE:=GCC support library
36 endef
37
38 define Package/libgcc/config
39 menu "Configuration"
40 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
41
42 config LIBGCC_ROOT_DIR
43 string
44 prompt "libgcc shared library base directory"
45 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
46 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
47 default "/" if NATIVE_TOOLCHAIN
48
49 config LIBGCC_FILE_SPEC
50 string
51 prompt "libgcc shared library files (use wildcards)"
52 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
53 default "./lib/libgcc_s.so.*"
54
55 endmenu
56 endef
57
58 define Package/libatomic
59 $(call Package/gcc/Default)
60 DEPENDS:=+libgcc
61 TITLE:=Atomic support library
62 endef
63
64 define Package/libatomic/config
65 menu "Configuration"
66 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
67
68 config LIBATOMIC_ROOT_DIR
69 string
70 prompt "libatomic shared library base directory"
71 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
72 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
73 default "/" if NATIVE_TOOLCHAIN
74
75 config LIBATOMIC_FILE_SPEC
76 string
77 prompt "libatomic shared library files (use wildcards)"
78 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
79 default "./lib/libatomic.so.*"
80
81 endmenu
82 endef
83
84 define Package/libssp
85 $(call Package/gcc/Default)
86 DEPENDS+=@SSP_SUPPORT
87 TITLE:=GCC support library
88 endef
89
90 define Package/libssp/config
91 menu "Configuration"
92 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
93
94 config LIBSSP_ROOT_DIR
95 string
96 prompt "libssp shared library base directory"
97 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
98 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
99 default "/" if NATIVE_TOOLCHAIN
100
101 config LIBSSP_FILE_SPEC
102 string
103 prompt "libssp shared library files (use wildcards)"
104 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
105 default "./lib/libssp.so.*"
106
107 endmenu
108 endef
109
110
111 define Package/libstdcpp
112 $(call Package/gcc/Default)
113 NAME:=libstdc++
114 TITLE:=GNU Standard C++ Library v3
115 endef
116
117 define Package/libstdcpp/config
118 menu "Configuration"
119 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
120
121 config LIBSTDCPP_ROOT_DIR
122 string
123 prompt "libstdcpp shared library base directory"
124 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
125 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
126 default "/" if NATIVE_TOOLCHAIN
127
128 config LIBSTDCPP_FILE_SPEC
129 string
130 prompt "libstdc++ shared library files (use wildcards)"
131 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
132 default "./lib/libstdc++.so.*"
133
134 endmenu
135 endef
136
137
138 define Package/libc/Default
139 SECTION:=libs
140 CATEGORY:=Base system
141 VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE)
142 DEPENDS:=+libgcc
143 URL:=$(LIBC_URL)
144 endef
145
146
147 define Package/libc
148 $(call Package/libc/Default)
149 TITLE:=C library
150 endef
151
152 define Package/libc/config
153 menu "Configuration"
154 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
155
156 config LIBC_ROOT_DIR
157 string
158 prompt "libc shared library base directory"
159 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
160 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
161 default "/" if NATIVE_TOOLCHAIN
162
163 config LIBC_FILE_SPEC
164 string
165 prompt "libc shared library files (use wildcards)"
166 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
167 default "./lib/ld{*.so*,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
168
169 endmenu
170 endef
171
172
173 define Package/libpthread
174 $(call Package/libc/Default)
175 TITLE:=POSIX thread library
176 endef
177
178 define Package/libpthread/config
179 menu "Configuration"
180 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
181
182 config LIBPTHREAD_ROOT_DIR
183 string
184 prompt "libpthread shared library base directory"
185 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
186 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
187 default "/" if NATIVE_TOOLCHAIN
188
189 config LIBPTHREAD_FILE_SPEC
190 string
191 prompt "libpthread shared library files (use wildcards)"
192 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
193 default "./lib/libpthread{-*.so,.so.*}"
194
195 endmenu
196 endef
197
198
199 define Package/libthread-db
200 $(call Package/libc/Default)
201 DEPENDS:=@!USE_MUSL
202 TITLE:=POSIX thread library debugging support
203 endef
204
205 define Package/libthread-db/config
206 menu "Configuration"
207 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db
208
209 config LIBTHREAD_DB_ROOT_DIR
210 string
211 prompt "POSIX thread debugging shared library base directory"
212 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db
213 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
214 default "/" if NATIVE_TOOLCHAIN
215
216 config LIBTHREAD_DB_FILE_SPEC
217 string
218 prompt "POSIX thread debugging shared library files (use wildcards)"
219 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db
220 default "./lib/libthread_db{-*.so,.so.*}"
221
222 endmenu
223 endef
224
225 define Package/librt
226 $(call Package/libc/Default)
227 TITLE:=POSIX.1b RealTime extension library
228 DEPENDS:=+libpthread
229 endef
230
231 define Package/librt/config
232 menu "Configuration"
233 depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
234
235 config LIBRT_ROOT_DIR
236 string
237 prompt "librt shared library base directory"
238 depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
239 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
240 default "/" if NATIVE_TOOLCHAIN
241
242 config LIBRT_FILE_SPEC
243 string
244 prompt "librt shared library files (use wildcards)"
245 depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
246 default "./lib/librt{-*.so,.so.*}"
247
248 endmenu
249 endef
250
251
252 define Package/libgfortran
253 $(call Package/gcc/Default)
254 TITLE:=GFortran support library
255 DEPENDS+=@INSTALL_GFORTRAN
256 endef
257
258 define Package/libgfortran/config
259 menu "Configuration"
260 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
261
262 config LIBGFORTRAN_ROOT_DIR
263 string
264 prompt "libgfortran shared library base directory"
265 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
266 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
267 default "/" if NATIVE_TOOLCHAIN
268
269 config LIBGFORTRAN_FILE_SPEC
270 string
271 prompt "libgfortran shared library files (use wildcards)"
272 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
273 default "./usr/lib/libgfortran.so.*"
274
275 endmenu
276 endef
277
278 define Package/ldd
279 $(call Package/libc/Default)
280 DEPENDS:=@!USE_MUSL
281 SECTION:=utils
282 CATEGORY:=Utilities
283 TITLE:=LDD trace utility
284 endef
285
286 define Package/ldd/config
287 menu "Configuration"
288 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
289
290 config LDD_ROOT_DIR
291 string
292 prompt "ldd trace utility base directory"
293 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
294 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
295 default "/" if NATIVE_TOOLCHAIN
296
297 config LDD_FILE_SPEC
298 string
299 prompt "ldd trace utility file"
300 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
301 default "./usr/bin/ldd"
302
303 endmenu
304 endef
305
306
307 define Package/ldconfig
308 $(call Package/libc/Default)
309 DEPENDS:=@!USE_MUSL
310 SECTION:=utils
311 CATEGORY:=Utilities
312 TITLE:=Shared library path configuration
313 endef
314
315 define Package/ldconfig/config
316 menu "Configuration"
317 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
318
319 config LDCONFIG_ROOT_DIR
320 string
321 prompt "ldconfig base directory"
322 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
323 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
324 default "/" if NATIVE_TOOLCHAIN
325
326 config LDCONFIG_FILE_SPEC
327 string
328 prompt "ldconfig file"
329 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
330 default "./sbin/ldconfig"
331
332 endmenu
333 endef
334
335 define Build/Prepare
336 mkdir -p $(PKG_BUILD_DIR)
337 endef
338
339 LIBGCC_A=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a))
340 LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map))
341 LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*))
342
343 define Build/Compile/uClibc
344 $(CP) \
345 $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \
346 $(TOOLCHAIN_DIR)/lib/libcrypt-*.so \
347 $(TOOLCHAIN_DIR)/lib/libm-*.so \
348 $(TOOLCHAIN_DIR)/lib/libpthread-*.so \
349 $(PKG_BUILD_DIR)/
350 endef
351 ifneq ($(LIBGCC_SO),)
352 define Build/Compile/libgcc
353 $(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/
354 endef
355 endif
356
357 define Build/Compile/Default
358 $(call Build/Compile/libgcc)
359 $(call Build/Compile/$(LIBC))
360 endef
361 Build/Compile = $(Build/Compile/Default)
362
363 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
364
365 define Package/libgcc/install
366 $(INSTALL_DIR) $(1)/lib
367 $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/
368 endef
369
370 define Package/libatomic/install
371 $(INSTALL_DIR) $(1)/lib
372 $(CP) $(TOOLCHAIN_DIR)/lib/libatomic.so.* $(1)/lib/
373 endef
374
375 define Package/libgfortran/install
376 $(INSTALL_DIR) $(1)/usr/lib
377 $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/
378 endef
379
380 define Package/libssp/install
381 $(INSTALL_DIR) $(1)/lib
382 $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
383 endef
384
385 define Package/libstdcpp/install
386 $(INSTALL_DIR) $(1)/usr/lib
387 $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/
388 endef
389
390 define Package/glibc/install
391 $(CP) ./glibc-files/* $(1)/
392 rm -f $(1)/etc/localtime
393 $(LN) /tmp/localtime $(1)/etc/localtime
394 $(INSTALL_DIR) $(1)/lib
395 $(CP) \
396 $(TOOLCHAIN_DIR)/lib/ld*.so.* \
397 $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \
398 $(1)/lib/
399 for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil; do \
400 for file in $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so; do \
401 if [ -e "$$$$file" ]; then \
402 $(CP) $$$$file $(1)/lib/; \
403 fi; \
404 done; \
405 done
406 endef
407
408 define Package/uClibc/install
409 $(INSTALL_DIR) $(1)/lib
410 $(CP) \
411 $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \
412 $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \
413 $(1)/lib/
414 $(CP) \
415 $(TOOLCHAIN_DIR)/lib/libc.so.* \
416 $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \
417 $(1)/lib/
418 for file in libcrypt libdl libm libutil; do \
419 $(CP) \
420 $(TOOLCHAIN_DIR)/lib/$$$$file.so.* \
421 $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so \
422 $(1)/lib/; \
423 done
424
425 $(CP) \
426 $(PKG_BUILD_DIR)/libuClibc-* \
427 $(PKG_BUILD_DIR)/libm-* \
428 $(PKG_BUILD_DIR)/libcrypt-* \
429 $(1)/lib/
430 endef
431
432 LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*)))
433
434 define Package/musl/install
435 $(INSTALL_DIR) $(1)/lib $(1)/usr/bin
436 $(CP) \
437 $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \
438 $(1)/lib/
439 $(CP) \
440 $(TOOLCHAIN_DIR)/lib/libc.so* \
441 $(1)/lib/
442 $(LN) ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd
443 endef
444
445 define Package/libc/install
446 $(call Package/$(LIBC)/install,$1)
447 endef
448
449 define Package/libc/install_lib
450 $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/
451 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a)
452 $(if $(LIBGCC_MAP), \
453 $(CP) $(LIBGCC_A) $(1)/lib/libgcc_s_pic.a; \
454 $(CP) $(LIBGCC_MAP) $(1)/lib/libgcc_s_pic.map \
455 )
456 endef
457
458 define Package/libpthread/install
459 $(INSTALL_DIR) $(1)/lib
460 ifneq ($(CONFIG_USE_MUSL),y)
461 $(CP) \
462 $(TOOLCHAIN_DIR)/lib/libpthread.so.* \
463 $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \
464 $(1)/lib/
465 endif
466 endef
467
468 define Package/libthread-db/install
469 $(INSTALL_DIR) $(1)/lib
470 $(CP) \
471 $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib
472 ifeq ($(CONFIG_USE_UCLIBC),y)
473 $(CP) \
474 $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
475 $(1)/lib/
476 endif
477 endef
478
479 define Package/libpthread/install_lib
480 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
481 endef
482
483 define Package/librt/install
484 $(INSTALL_DIR) $(1)/lib
485 ifneq ($(CONFIG_USE_MUSL),y)
486 $(CP) \
487 $(TOOLCHAIN_DIR)/lib/librt.so.* \
488 $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \
489 $(1)/lib/
490 endif
491 endef
492
493 define Package/ldd/install
494 $(INSTALL_DIR) $(1)/usr/bin/
495 $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/
496 endef
497
498 define Package/ldconfig/install
499 $(INSTALL_DIR) $(1)/sbin/
500 $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/
501 endef
502
503 else
504
505 define Package/libgcc/install
506 for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \
507 $(INSTALL_DIR) $(1)/lib ; \
508 $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
509 done ; \
510 exit 0
511 endef
512
513 define Package/libgfortran/install
514 for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
515 $(INSTALL_DIR) $(1)/lib ; \
516 $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/lib/ ; \
517 done
518 endef
519
520 define Package/libssp/install
521 for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
522 $(INSTALL_DIR) $(1)/lib ; \
523 $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/lib/ ; \
524 done ; \
525 exit 0
526 endef
527
528 define Package/libstdcpp/install
529 for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \
530 $(INSTALL_DIR) $(1)/lib ; \
531 $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/lib/ ; \
532 done ; \
533 exit 0
534 endef
535
536 define Package/libc/install
537 for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \
538 $(INSTALL_DIR) $(1)/lib ; \
539 $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
540 done ; \
541 exit 0
542 endef
543
544 define Package/libpthread/install
545 for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \
546 $(INSTALL_DIR) $(1)/lib ; \
547 $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/lib/ ; \
548 done ; \
549 exit 0
550 endef
551
552 define Package/libthread-db/install
553 for file in $(call qstrip,$(CONFIG_LIBTHREAD_DB_FILE_SPEC)); do \
554 $(INSTALL_DIR) $(1)/lib ; \
555 $(CP) $(call qstrip,$(CONFIG_LIBTHREAD_DB_ROOT_DIR))/$$$$file $(1)/lib/ ; \
556 done ; \
557 exit 0
558 endef
559
560 define Package/librt/install
561 for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \
562 $(INSTALL_DIR) $(1)/lib ; \
563 $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/lib/ ; \
564 done ; \
565 exit 0
566 endef
567
568 define Package/libatomic/install
569 for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \
570 $(INSTALL_DIR) $(1)/lib ; \
571 $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
572 done ; \
573 exit 0
574 endef
575
576 define Package/ldd/install
577 for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \
578 dir=`dirname $$$$file` ; \
579 $(INSTALL_DIR) $(1)/$$$$dir ; \
580 $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
581 done ; \
582 exit 0
583 endef
584
585 define Package/ldconfig/install
586 for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \
587 dir=`dirname $$$$file` ; \
588 $(INSTALL_DIR) $(1)/$$$$dir ; \
589 $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
590 done ; \
591 exit 0
592 endef
593
594 endif
595
596 $(eval $(call BuildPackage,libc))
597 $(eval $(call BuildPackage,libgcc))
598 $(eval $(call BuildPackage,libatomic))
599 $(eval $(call BuildPackage,libssp))
600 $(eval $(call BuildPackage,libstdcpp))
601 $(eval $(call BuildPackage,libpthread))
602 $(eval $(call BuildPackage,libthread-db))
603 $(eval $(call BuildPackage,librt))
604 $(eval $(call BuildPackage,libgfortran))
605 $(eval $(call BuildPackage,ldd))
606 $(eval $(call BuildPackage,ldconfig))