2 # Copyright (C) 2007-2012 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
>
14 include $(INCLUDE_DIR
)/package.mk
17 LIBGCC_VERSION
:=$(GCC_VERSION
)
19 LIBC_VERSION
:=<LIBC_VERSION
>
20 LIBGCC_VERSION
:=<LIBGCC_VERSION
>
23 define Package
/gcc
/Default
26 URL
:=http
://gcc.gnu.org
/
27 VERSION
:=$(LIBGCC_VERSION
)-$(PKG_RELEASE
)
31 $(call Package
/gcc
/Default
)
32 TITLE
:=GCC support library
35 define Package
/libgcc
/config
37 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
39 config LIBGCC_ROOT_DIR
41 prompt
"libgcc shared library base directory"
42 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
43 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
44 default
"/" if NATIVE_TOOLCHAIN
46 config LIBGCC_FILE_SPEC
48 prompt
"libgcc shared library files (use wildcards)"
49 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
50 default
"./lib/libgcc_s.so.*"
55 define Package
/libatomic
56 $(call Package
/gcc
/Default
)
58 TITLE
:=Atomic support library
61 define Package
/libatomic
/config
63 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
65 config LIBATOMIC_ROOT_DIR
67 prompt
"libatomic shared library base directory"
68 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
69 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
70 default
"/" if NATIVE_TOOLCHAIN
72 config LIBATOMIC_FILE_SPEC
74 prompt
"libatomic shared library files (use wildcards)"
75 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
76 default
"./lib/libatomic.so.*"
82 $(call Package
/gcc
/Default
)
84 TITLE
:=GCC support library
87 define Package
/libssp
/config
89 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
91 config LIBSSP_ROOT_DIR
93 prompt
"libssp shared library base directory"
94 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
95 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
96 default
"/" if NATIVE_TOOLCHAIN
98 config LIBSSP_FILE_SPEC
100 prompt
"libssp shared library files (use wildcards)"
101 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
102 default
"./lib/libssp.so.*"
108 define Package
/libstdcpp
109 $(call Package
/gcc
/Default
)
111 TITLE
:=GNU Standard C
++ Library v3
114 define Package
/libstdcpp
/config
116 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
118 config LIBSTDCPP_ROOT_DIR
120 prompt
"libstdcpp shared library base directory"
121 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
122 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
123 default
"/" if NATIVE_TOOLCHAIN
125 config LIBSTDCPP_FILE_SPEC
127 prompt
"libstdc++ shared library files (use wildcards)"
128 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
129 default
"./lib/libstdc++.so.*"
135 define Package
/libc
/Default
137 CATEGORY
:=Base system
138 VERSION
:=$(LIBC_VERSION
)-$(PKG_RELEASE
)
141 PKG_FLAGS
:=hold essential
146 $(call Package
/libc
/Default
)
150 define Package
/libc
/config
152 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
156 prompt
"libc shared library base directory"
157 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
158 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
159 default
"/" if NATIVE_TOOLCHAIN
161 config LIBC_FILE_SPEC
163 prompt
"libc shared library files (use wildcards)"
164 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
165 default
"./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
171 define Package
/libpthread
172 $(call Package
/libc
/Default
)
173 TITLE
:=POSIX thread library
176 define Package
/libpthread
/config
178 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
180 config LIBPTHREAD_ROOT_DIR
182 prompt
"libpthread shared library base directory"
183 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
184 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
185 default
"/" if NATIVE_TOOLCHAIN
187 config LIBPTHREAD_FILE_SPEC
189 prompt
"libpthread shared library files (use wildcards)"
190 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
191 default
"./lib/libpthread{-*.so,.so.*}"
197 define Package
/libthread-db
198 $(call Package
/libc
/Default
)
200 TITLE
:=POSIX thread library debugging support
204 $(call Package
/libc
/Default
)
205 TITLE
:=POSIX
.1b RealTime extension library
209 define Package
/librt
/config
211 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
213 config LIBRT_ROOT_DIR
215 prompt
"librt shared library base directory"
216 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
217 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
218 default
"/" if NATIVE_TOOLCHAIN
220 config LIBRT_FILE_SPEC
222 prompt
"librt shared library files (use wildcards)"
223 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
224 default
"./lib/librt{-*.so,.so.*}"
230 define Package
/libgfortran
231 $(call Package
/gcc
/Default
)
232 TITLE
:=GFortran support library
233 DEPENDS
+=@INSTALL_GFORTRAN
236 define Package
/libgfortran
/config
238 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
240 config LIBGFORTRAN_ROOT_DIR
242 prompt
"libgfortran shared library base directory"
243 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
244 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
245 default
"/" if NATIVE_TOOLCHAIN
247 config LIBGFORTRAN_FILE_SPEC
249 prompt
"libgfortran shared library files (use wildcards)"
250 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
251 default
"./usr/lib/libgfortran.so.*"
257 $(call Package
/libc
/Default
)
261 TITLE
:=LDD trace utility
264 define Package
/ldd
/config
266 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
270 prompt
"ldd trace utility base directory"
271 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
272 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
273 default
"/" if NATIVE_TOOLCHAIN
277 prompt
"ldd trace utility file"
278 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
279 default
"./usr/bin/ldd"
285 define Package
/ldconfig
286 $(call Package
/libc
/Default
)
290 TITLE
:=Shared library path configuration
293 define Package
/ldconfig
/config
295 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
297 config LDCONFIG_ROOT_DIR
299 prompt
"ldconfig base directory"
300 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
301 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
302 default
"/" if NATIVE_TOOLCHAIN
304 config LDCONFIG_FILE_SPEC
306 prompt
"ldconfig file"
307 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
308 default
"./sbin/ldconfig"
314 mkdir
-p
$(PKG_BUILD_DIR
)
317 LIBGCC_A
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc_pic.a
))
318 LIBGCC_MAP
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc.map
))
319 LIBGCC_SO
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
*))
320 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
321 ifneq ($(if
$(CONFIG_USE_UCLIBC
),$(CONFIG_GCC_VERSION_LINARO
)),)
322 BUILD_LIBGCC
:=$(if
$(CONFIG_avr32
)$(CONFIG_m68k
)$(CONFIG_powerpc
),,$(PKG_BUILD_DIR
)/libgcc_s.so.
*)
326 ifneq ($(BUILD_LIBGCC
),)
327 define Build
/Compile
/uClibc
328 $(SCRIPT_DIR
)/relink-lib.sh \
330 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
331 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
332 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libuClibc-*.so))" \
333 -Wl
,-init
,__uClibc_init
-Wl
,-soname
=libc.so
.0 \
335 $(SCRIPT_DIR
)/relink-lib.sh \
337 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so)" \
338 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt_pic.a)" \
339 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so))" \
341 -Wl
,-soname
=libcrypt.so
.0
342 $(SCRIPT_DIR
)/relink-lib.sh \
344 "$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic.so)" \
345 "$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic.a)" \
346 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libatomic*.so))" \
348 -Wl
,-soname
=libatomic.so
.0
349 $(SCRIPT_DIR
)/relink-lib.sh \
351 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so)" \
352 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm_pic.a)" \
353 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so))" \
355 -Wl
,-soname
=libm.so
.0
356 $(SCRIPT_DIR
)/relink-lib.sh \
358 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so)" \
359 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \
360 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \
361 -Wl
,-z
,nodelete
,-z
,initfirst
,-init
=__pthread_initialize_minimal_internal \
362 -ldl
-lc
$(BUILD_LIBGCC
) \
363 -Wl
,-soname
=libpthread.so
.0
365 define Build
/Compile
/libgcc
366 $(SCRIPT_DIR
)/relink-lib.sh \
370 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(LIBGCC_SO))" \
371 -Wl
,--version-script
=$(LIBGCC_MAP
) -Wl
,-soname
=libgcc_s.so
.1
374 define Build
/Compile
/uClibc
376 $(TOOLCHAIN_DIR
)/lib
/libuClibc-
*.so \
377 $(TOOLCHAIN_DIR
)/lib
/libcrypt-
*.so \
378 $(TOOLCHAIN_DIR
)/lib
/libm-
*.so \
379 $(TOOLCHAIN_DIR
)/lib
/libpthread-
*.so \
382 ifneq ($(LIBGCC_SO
),)
383 define Build
/Compile
/libgcc
384 $(CP
) $(LIBGCC_SO
) $(PKG_BUILD_DIR
)/
389 define Build
/Compile
/Default
390 $(call Build
/Compile
/libgcc
)
391 $(call Build
/Compile
/$(LIBC
))
393 Build
/Compile
= $(Build
/Compile
/Default
)
395 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
397 define Package
/libgcc
/install
398 $(INSTALL_DIR
) $(1)/lib
399 $(if
$(CONFIG_TARGET_avr32
)$(CONFIG_TARGET_coldfire
),,$(CP
) $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
* $(1)/lib
/)
402 define Package
/libatomic
/install
403 $(INSTALL_DIR
) $(1)/lib
404 $(if
$(CONFIG_TARGET_avr32
)$(CONFIG_TARGET_coldfire
),,$(CP
) $(TOOLCHAIN_DIR
)/lib
/libatomic.so.
* $(1)/lib
/)
407 define Package
/libgfortran
/install
408 $(INSTALL_DIR
) $(1)/usr
/lib
409 $(if
$(CONFIG_TARGET_avr32
)$(CONFIG_TARGET_coldfire
),,$(CP
) $(TOOLCHAIN_DIR
)/lib
/libgfortran.so.
* $(1)/usr
/lib
/)
412 define Package
/libssp
/install
413 $(INSTALL_DIR
) $(1)/lib
414 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libssp.so.
* $(1)/lib
/
417 define Package
/libstdcpp
/install
418 $(INSTALL_DIR
) $(1)/usr
/lib
419 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libstdc
++.so.
* $(1)/usr
/lib
/
422 use_libutil
=$(if
$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP
),libutil
)
423 use_libnsl
=$(if
$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS
),libnsl
)
424 use_nsswitch
=$(if
$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH
),libnss_dns libnss_files
)
426 define Package
/eglibc
/install
427 $(CP
) .
/eglibc-files
/* $(1)/
428 rm -f
$(1)/etc
/localtime
429 ln
-sf
/tmp
/localtime
$(1)/etc
/localtime
430 $(INSTALL_DIR
) $(1)/lib
432 $(TOOLCHAIN_DIR
)/lib
/ld*.so.
* \
433 $(TOOLCHAIN_DIR
)/lib
/ld-
$(LIBC_SO_VERSION
).so \
435 for file in libanl libc libcidn libcrypt libdl libm
$(use_libnsl
) $(use_nsswitch
) libresolv
$(use_libutil
); do \
436 for file in
$(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
* $(TOOLCHAIN_DIR
)/lib
/$$$$file-$(LIBC_SO_VERSION
).so
; do \
437 if
[ -e
"$$$$file" ]; then \
438 $(CP
) $$$$file $(1)/lib
/; \
444 define Package
/uClibc
/install
445 $(INSTALL_DIR
) $(1)/lib
447 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc.so.
* \
448 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc-
$(LIBC_SO_VERSION
).so \
451 $(TOOLCHAIN_DIR
)/lib
/libc.so.
* \
452 $(TOOLCHAIN_DIR
)/lib
/libuClibc-
$(LIBC_SO_VERSION
).so \
454 for file in libatomic libcrypt libdl libm libutil
; do \
456 $(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
* \
457 $(TOOLCHAIN_DIR
)/lib
/$$$$file-$(LIBC_SO_VERSION
).so \
462 $(PKG_BUILD_DIR
)/libuClibc-
* \
463 $(PKG_BUILD_DIR
)/libm-
* \
464 $(PKG_BUILD_DIR
)/libcrypt-
* \
468 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR
)/lib
/ld-musl-
*.so
*)))
470 define Package
/musl
/install
471 $(INSTALL_DIR
) $(1)/lib
$(1)/usr
/bin
473 $(TOOLCHAIN_DIR
)/lib
/ld-musl-
*.so
* \
476 $(TOOLCHAIN_DIR
)/lib
/libc.so
* \
478 ln
-s ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
479 $(if
$(findstring -sf.so
,$(LD_MUSL_NAME
)),ln
-s
$(LD_MUSL_NAME
) $(1)/lib
/$(subst -sf.so
,.so
,$(LD_MUSL_NAME
)))
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
/ldd
/install
608 for file in
$(call qstrip
,$(CONFIG_LDD_FILE_SPEC
)); do \
609 dir=`dirname $$$$file` ; \
610 $(INSTALL_DIR
) $(1)/$$$$dir ; \
611 $(CP
) $(call qstrip
,$(CONFIG_LDD_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
616 define Package
/ldconfig
/install
617 for file in
$(call qstrip
,$(CONFIG_LDCONFIG_FILE_SPEC
)); do \
618 dir=`dirname $$$$file` ; \
619 $(INSTALL_DIR
) $(1)/$$$$dir ; \
620 $(CP
) $(call qstrip
,$(CONFIG_LDCONFIG_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
627 $(eval
$(call BuildPackage
,libc
))
628 $(eval
$(call BuildPackage
,libgcc
))
629 $(eval
$(call BuildPackage
,libatomic
))
630 $(eval
$(call BuildPackage
,libssp
))
631 $(eval
$(call BuildPackage
,libstdcpp
))
632 $(eval
$(call BuildPackage
,libpthread
))
633 $(eval
$(call BuildPackage
,libthread-db
))
634 $(eval
$(call BuildPackage
,librt
))
635 $(eval
$(call BuildPackage
,libgfortran
))
636 $(eval
$(call BuildPackage
,ldd
))
637 $(eval
$(call BuildPackage
,ldconfig
))