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