2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
12 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
13 PKG_LICENSE:=GPL-3.0-with-GCC-exception
15 include $(INCLUDE_DIR)/package.mk
18 LIBGCC_VERSION:=$(GCC_VERSION)
20 LIBC_VERSION:=<LIBC_VERSION>
21 LIBGCC_VERSION:=<LIBGCC_VERSION>
24 define Package/gcc/Default
27 URL:=http://gcc.gnu.org/
28 VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
32 $(call Package/gcc/Default)
33 TITLE:=GCC support library
36 define Package/libgcc/config
38 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
40 config LIBGCC_ROOT_DIR
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
47 config LIBGCC_FILE_SPEC
49 prompt "libgcc shared library files (use wildcards)"
50 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
51 default "./lib/libgcc_s.so.*"
56 define Package/libatomic
57 $(call Package/gcc/Default)
59 TITLE:=Atomic support library
62 define Package/libatomic/config
64 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
66 config LIBATOMIC_ROOT_DIR
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
73 config LIBATOMIC_FILE_SPEC
75 prompt "libatomic shared library files (use wildcards)"
76 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
77 default "./lib/libatomic.so.*"
83 $(call Package/gcc/Default)
85 TITLE:=GCC support library
88 define Package/libssp/config
90 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
92 config LIBSSP_ROOT_DIR
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
99 config LIBSSP_FILE_SPEC
101 prompt "libssp shared library files (use wildcards)"
102 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
103 default "./lib/libssp.so.*"
109 define Package/libstdcpp
110 $(call Package/gcc/Default)
112 TITLE:=GNU Standard C++ Library v3
115 define Package/libstdcpp/config
117 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
119 config LIBSTDCPP_ROOT_DIR
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
126 config LIBSTDCPP_FILE_SPEC
128 prompt "libstdc++ shared library files (use wildcards)"
129 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
130 default "./lib/libstdc++.so.*"
136 define Package/libc/Default
138 CATEGORY:=Base system
139 VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE)
142 PKG_FLAGS:=hold essential
147 $(call Package/libc/Default)
151 define Package/libc/config
153 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
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
162 config LIBC_FILE_SPEC
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.*}"
172 define Package/libpthread
173 $(call Package/libc/Default)
174 TITLE:=POSIX thread library
177 define Package/libpthread/config
179 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
181 config LIBPTHREAD_ROOT_DIR
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
188 config LIBPTHREAD_FILE_SPEC
190 prompt "libpthread shared library files (use wildcards)"
191 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
192 default "./lib/libpthread{-*.so,.so.*}"
198 define Package/libthread-db
199 $(call Package/libc/Default)
201 TITLE:=POSIX thread library debugging support
205 $(call Package/libc/Default)
206 TITLE:=POSIX.1b RealTime extension library
210 define Package/librt/config
212 depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
214 config LIBRT_ROOT_DIR
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
221 config LIBRT_FILE_SPEC
223 prompt "librt shared library files (use wildcards)"
224 depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
225 default "./lib/librt{-*.so,.so.*}"
231 define Package/libgfortran
232 $(call Package/gcc/Default)
233 TITLE:=GFortran support library
234 DEPENDS+=@INSTALL_GFORTRAN
237 define Package/libgfortran/config
239 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
241 config LIBGFORTRAN_ROOT_DIR
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
248 config LIBGFORTRAN_FILE_SPEC
250 prompt "libgfortran shared library files (use wildcards)"
251 depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
252 default "./usr/lib/libgfortran.so.*"
258 $(call Package/libc/Default)
262 TITLE:=LDD trace utility
265 define Package/ldd/config
267 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
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
278 prompt "ldd trace utility file"
279 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
280 default "./usr/bin/ldd"
286 define Package/ldconfig
287 $(call Package/libc/Default)
291 TITLE:=Shared library path configuration
294 define Package/ldconfig/config
296 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
298 config LDCONFIG_ROOT_DIR
300 prompt "ldconfig base directory"
301 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
302 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
303 default "/" if NATIVE_TOOLCHAIN
305 config LDCONFIG_FILE_SPEC
307 prompt "ldconfig file"
308 depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
309 default "./sbin/ldconfig"
315 mkdir -p $(PKG_BUILD_DIR)
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 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
322 ifneq ($(if $(CONFIG_USE_UCLIBC),$(CONFIG_GCC_VERSION_LINARO)),)
323 BUILD_LIBGCC:=$(if $(CONFIG_avr32)$(CONFIG_m68k)$(CONFIG_powerpc),,$(PKG_BUILD_DIR)/libgcc_s.so.*)
327 ifneq ($(BUILD_LIBGCC),)
328 define Build/Compile/uClibc
329 $(SCRIPT_DIR)/relink-lib.sh \
331 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
332 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
333 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libuClibc-*.so))" \
334 -Wl,-init,__uClibc_init -Wl,-soname=libc.so.0 \
336 $(SCRIPT_DIR)/relink-lib.sh \
338 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so)" \
339 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt_pic.a)" \
340 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so))" \
342 -Wl,-soname=libcrypt.so.0
343 $(SCRIPT_DIR)/relink-lib.sh \
345 "$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic.so)" \
346 "$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic.a)" \
347 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic*.so))" \
349 -Wl,-soname=libatomic.so.0
350 $(SCRIPT_DIR)/relink-lib.sh \
352 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so)" \
353 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm_pic.a)" \
354 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so))" \
356 -Wl,-soname=libm.so.0
357 $(SCRIPT_DIR)/relink-lib.sh \
359 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so)" \
360 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \
361 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \
362 -Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal \
363 -ldl -lc $(BUILD_LIBGCC) \
364 -Wl,-soname=libpthread.so.0
366 define Build/Compile/libgcc
367 $(SCRIPT_DIR)/relink-lib.sh \
371 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(LIBGCC_SO))" \
372 -Wl,--version-script=$(LIBGCC_MAP) -Wl,-soname=libgcc_s.so.1
375 define Build/Compile/uClibc
377 $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \
378 $(TOOLCHAIN_DIR)/lib/libcrypt-*.so \
379 $(TOOLCHAIN_DIR)/lib/libm-*.so \
380 $(TOOLCHAIN_DIR)/lib/libpthread-*.so \
383 ifneq ($(LIBGCC_SO),)
384 define Build/Compile/libgcc
385 $(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/
390 define Build/Compile/Default
391 $(call Build/Compile/libgcc)
392 $(call Build/Compile/$(LIBC))
394 Build/Compile = $(Build/Compile/Default)
396 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
398 define Package/libgcc/install
399 $(INSTALL_DIR) $(1)/lib
400 $(if $(CONFIG_TARGET_avr32)$(CONFIG_TARGET_coldfire),,$(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/)
403 define Package/libatomic/install
404 $(INSTALL_DIR) $(1)/lib
405 $(if $(CONFIG_GCC_VERSION_4_6)$(CONFIG_TARGET_avr32)$(CONFIG_TARGET_coldfire),,$(CP) $(TOOLCHAIN_DIR)/lib/libatomic.so.* $(1)/lib/)
408 define Package/libgfortran/install
409 $(INSTALL_DIR) $(1)/usr/lib
410 $(if $(CONFIG_TARGET_avr32)$(CONFIG_TARGET_coldfire),,$(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/)
413 define Package/libssp/install
414 $(INSTALL_DIR) $(1)/lib
415 $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
418 define Package/libstdcpp/install
419 $(INSTALL_DIR) $(1)/usr/lib
420 $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/
423 use_libutil=$(if $(CONFIG_GLIBC_USE_VERSION_2_21)$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),libutil)
424 use_libnsl=$(if $(CONFIG_GLIBC_USE_VERSION_2_21)$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS),libnsl)
425 use_nsswitch=$(if $(CONFIG_GLIBC_USE_VERSION_2_21)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH),libnss_dns libnss_files)
427 define Package/glibc/install
428 $(CP) ./glibc-files/* $(1)/
429 rm -f $(1)/etc/localtime
430 $(LN) /tmp/localtime $(1)/etc/localtime
431 $(INSTALL_DIR) $(1)/lib
433 $(TOOLCHAIN_DIR)/lib/ld*.so.* \
434 $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \
436 for file in libanl libc libcidn libcrypt libdl libm $(use_libnsl) $(use_nsswitch) libresolv $(use_libutil); do \
437 for file in $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so; do \
438 if [ -e "$$$$file" ]; then \
439 $(CP) $$$$file $(1)/lib/; \
445 define Package/uClibc/install
446 $(INSTALL_DIR) $(1)/lib
448 $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \
449 $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \
452 $(TOOLCHAIN_DIR)/lib/libc.so.* \
453 $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \
455 for file in libcrypt libdl libm libutil; do \
457 $(TOOLCHAIN_DIR)/lib/$$$$file.so.* \
458 $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so \
463 $(PKG_BUILD_DIR)/libuClibc-* \
464 $(PKG_BUILD_DIR)/libm-* \
465 $(PKG_BUILD_DIR)/libcrypt-* \
469 LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*)))
471 define Package/musl/install
472 $(INSTALL_DIR) $(1)/lib $(1)/usr/bin
474 $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \
477 $(TOOLCHAIN_DIR)/lib/libc.so* \
479 $(LN) ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd
482 define Package/libc/install
483 $(call Package/$(LIBC)/install,$1)
486 define Package/libc/install_lib
487 $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/
488 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a)
489 $(if $(LIBGCC_MAP), \
490 $(CP) $(LIBGCC_A) $(1)/lib/libgcc_s_pic.a; \
491 $(CP) $(LIBGCC_MAP) $(1)/lib/libgcc_s_pic.map \
495 define Package/libpthread/install
496 $(INSTALL_DIR) $(1)/lib
497 ifneq ($(CONFIG_USE_MUSL),y)
499 $(TOOLCHAIN_DIR)/lib/libpthread.so.* \
500 $(if $(BUILD_LIBGCC),\
501 $(PKG_BUILD_DIR)/libpthread-$(LIBC_SO_VERSION).so, \
502 $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \
508 define Package/libthread-db/install
509 $(INSTALL_DIR) $(1)/lib
511 $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib
512 ifeq ($(CONFIG_USE_UCLIBC),y)
514 $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
519 define Package/libpthread/install_lib
520 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
523 define Package/librt/install
524 $(INSTALL_DIR) $(1)/lib
525 ifneq ($(CONFIG_USE_MUSL),y)
527 $(TOOLCHAIN_DIR)/lib/librt.so.* \
528 $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \
533 define Package/ldd/install
534 $(INSTALL_DIR) $(1)/usr/bin/
535 $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/
538 define Package/ldconfig/install
539 $(INSTALL_DIR) $(1)/sbin/
540 $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/
545 define Package/libgcc/install
546 for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \
547 dir=`dirname $$$$file` ; \
548 $(INSTALL_DIR) $(1)/$$$$dir ; \
549 $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
554 define Package/libgfortran/install
555 for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
556 dir=`dirname $$$$file` ; \
557 $(INSTALL_DIR) $(1)/$$$$dir ; \
558 $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
562 define Package/libssp/install
563 for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
564 dir=`dirname $$$$file` ; \
565 $(INSTALL_DIR) $(1)/$$$$dir ; \
566 $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
571 define Package/libstdcpp/install
572 for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \
573 dir=`dirname $$$$file` ; \
574 $(INSTALL_DIR) $(1)/$$$$dir ; \
575 $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
580 define Package/libc/install
581 for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \
582 dir=`dirname $$$$file` ; \
583 $(INSTALL_DIR) $(1)/$$$$dir ; \
584 $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
589 define Package/libpthread/install
590 for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \
591 dir=`dirname $$$$file` ; \
592 $(INSTALL_DIR) $(1)/$$$$dir ; \
593 $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
598 define Package/librt/install
599 for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \
600 dir=`dirname $$$$file` ; \
601 $(INSTALL_DIR) $(1)/$$$$dir ; \
602 $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
607 define Package/libatomic/install
608 for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \
609 dir=`dirname $$$$file` ; \
610 $(INSTALL_DIR) $(1)/$$$$dir ; \
611 $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
616 define Package/ldd/install
617 for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \
618 dir=`dirname $$$$file` ; \
619 $(INSTALL_DIR) $(1)/$$$$dir ; \
620 $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
625 define Package/ldconfig/install
626 for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \
627 dir=`dirname $$$$file` ; \
628 $(INSTALL_DIR) $(1)/$$$$dir ; \
629 $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
636 $(eval $(call BuildPackage,libc))
637 $(eval $(call BuildPackage,libgcc))
638 $(eval $(call BuildPackage,libatomic))
639 $(eval $(call BuildPackage,libssp))
640 $(eval $(call BuildPackage,libstdcpp))
641 $(eval $(call BuildPackage,libpthread))
642 $(eval $(call BuildPackage,libthread-db))
643 $(eval $(call BuildPackage,librt))
644 $(eval $(call BuildPackage,libgfortran))
645 $(eval $(call BuildPackage,ldd))
646 $(eval $(call BuildPackage,ldconfig))