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@nbd.name
>
13 PKG_LICENSE
:=GPL-3.0
-with-GCC-exception
15 PKG_FLAGS
:=hold essential nonshared
17 include $(INCLUDE_DIR
)/package.mk
20 LIBGCC_VERSION
:=$(GCC_VERSION
)
22 LIBC_VERSION
:=<LIBC_VERSION
>
23 LIBGCC_VERSION
:=<LIBGCC_VERSION
>
26 define Package
/gcc
/Default
29 URL
:=http
://gcc.gnu.org
/
30 VERSION
:=$(LIBGCC_VERSION
)-$(PKG_RELEASE
)
34 $(call Package
/gcc
/Default
)
35 TITLE
:=GCC support library
39 define Package
/libgcc
/config
41 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
43 config LIBGCC_ROOT_DIR
45 prompt
"libgcc shared library base directory"
46 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
47 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
48 default
"/" if NATIVE_TOOLCHAIN
50 config LIBGCC_FILE_SPEC
52 prompt
"libgcc shared library files (use wildcards)"
53 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
54 default
"./lib/libgcc_s.so.*"
59 define Package
/libatomic
60 $(call Package
/gcc
/Default
)
62 TITLE
:=Atomic support library
66 define Package
/libatomic
/config
68 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
70 config LIBATOMIC_ROOT_DIR
72 prompt
"libatomic shared library base directory"
73 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
74 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
75 default
"/" if NATIVE_TOOLCHAIN
77 config LIBATOMIC_FILE_SPEC
79 prompt
"libatomic shared library files (use wildcards)"
80 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libatomic
81 default
"./lib/libatomic.so.*"
86 define Package
/libstdcpp
87 $(call Package
/gcc
/Default
)
89 TITLE
:=GNU Standard C
++ Library v3
93 define Package
/libstdcpp
/config
95 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
97 config LIBSTDCPP_ROOT_DIR
99 prompt
"libstdcpp shared library base directory"
100 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
101 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
102 default
"/" if NATIVE_TOOLCHAIN
104 config LIBSTDCPP_FILE_SPEC
106 prompt
"libstdc++ shared library files (use wildcards)"
107 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
108 default
"./lib/libstdc++.so.*"
114 define Package
/libasan
115 $(call Package
/gcc
/Default
)
117 TITLE
:=Runtime library for AddressSanitizer in GCC
118 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips64 @
!mips64el @
!arc
122 define Package
/libasan
/config
124 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
126 config LIBASAN_ROOT_DIR
128 prompt
"libasan shared library base directory"
129 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
130 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
131 default
"/" if NATIVE_TOOLCHAIN
133 config LIBASAN_FILE_SPEC
135 prompt
"libasan shared library files (use wildcards)"
136 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
137 default
"./lib/libasan.so.*"
143 define Package
/libtsan
144 $(call Package
/gcc
/Default
)
146 TITLE
:=Runtime library for ThreadSanitizer in GCC
147 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips @
!mipsel @
!mips64 @
!mips64el @
!arc
151 define Package
/libtsan
/config
153 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
155 config LIBTSAN_ROOT_DIR
157 prompt
"libtsan shared library base directory"
158 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
159 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
160 default
"/" if NATIVE_TOOLCHAIN
162 config LIBTSAN_FILE_SPEC
164 prompt
"libtsan shared library files (use wildcards)"
165 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
166 default
"./lib/libtsan.so.*"
172 define Package
/liblsan
173 $(call Package
/gcc
/Default
)
175 TITLE
:=Runtime library for LeakSanitizer in GCC
176 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips @
!mipsel @
!mips64 @
!mips64el @
!arc
180 define Package
/liblsan
/config
182 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
184 config LIBLSAN_ROOT_DIR
186 prompt
"liblsan shared library base directory"
187 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
188 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
189 default
"/" if NATIVE_TOOLCHAIN
191 config LIBLSAN_FILE_SPEC
193 prompt
"liblsan shared library files (use wildcards)"
194 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
195 default
"./lib/liblsan.so.*"
201 define Package
/libubsan
202 $(call Package
/gcc
/Default
)
204 TITLE
:=Runtime library for UndefinedBehaviorSanitizer in GCC
205 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips64 @
!mips64el @
!arc
209 define Package
/libubsan
/config
211 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
213 config LIBUBSAN_ROOT_DIR
215 prompt
"libubsan shared library base directory"
216 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
217 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
218 default
"/" if NATIVE_TOOLCHAIN
220 config LIBUBSAN_FILE_SPEC
222 prompt
"libubsan shared library files (use wildcards)"
223 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
224 default
"./lib/libubsan.so.*"
230 define Package
/libc
/Default
232 CATEGORY
:=Base system
233 VERSION
:=$(LIBC_VERSION
)-$(PKG_RELEASE
)
240 $(call Package
/libc
/Default
)
244 define Package
/libc
/config
246 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
250 prompt
"libc shared library base directory"
251 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
252 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
253 default
"/" if NATIVE_TOOLCHAIN
255 config LIBC_FILE_SPEC
257 prompt
"libc shared library files (use wildcards)"
258 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
259 default
"./lib/ld{*.so*,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*,.so}"
265 define Package
/libpthread
266 $(call Package
/libc
/Default
)
267 TITLE
:=POSIX thread library
270 define Package
/libpthread
/config
272 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
274 config LIBPTHREAD_ROOT_DIR
276 prompt
"libpthread shared library base directory"
277 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
278 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
279 default
"/" if NATIVE_TOOLCHAIN
281 config LIBPTHREAD_FILE_SPEC
283 prompt
"libpthread shared library files (use wildcards)"
284 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
285 default
"./lib/libpthread{-*.so,.so.*}"
291 define Package
/libthread-db
292 $(call Package
/libc
/Default
)
294 TITLE
:=POSIX thread library debugging support
297 define Package
/libthread-db
/config
299 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
301 config LIBTHREAD_DB_ROOT_DIR
303 prompt
"POSIX thread debugging shared library base directory"
304 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
305 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
306 default
"/" if NATIVE_TOOLCHAIN
308 config LIBTHREAD_DB_FILE_SPEC
310 prompt
"POSIX thread debugging shared library files (use wildcards)"
311 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
312 default
"./lib/libthread_db{-*.so,.so.*}"
318 $(call Package
/libc
/Default
)
319 TITLE
:=POSIX
.1b RealTime extension library
323 define Package
/librt
/config
325 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
327 config LIBRT_ROOT_DIR
329 prompt
"librt shared library base directory"
330 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
331 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
332 default
"/" if NATIVE_TOOLCHAIN
334 config LIBRT_FILE_SPEC
336 prompt
"librt shared library files (use wildcards)"
337 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
338 default
"./lib/librt{-*.so,.so.*}"
344 define Package
/libgfortran
345 $(call Package
/gcc
/Default
)
346 TITLE
:=GFortran support library
347 DEPENDS
+=@INSTALL_GFORTRAN
350 define Package
/libgfortran
/config
352 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
354 config LIBGFORTRAN_ROOT_DIR
356 prompt
"libgfortran shared library base directory"
357 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
358 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
359 default
"/" if NATIVE_TOOLCHAIN
361 config LIBGFORTRAN_FILE_SPEC
363 prompt
"libgfortran shared library files (use wildcards)"
364 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
365 default
"./usr/lib/libgfortran.so.*"
370 define Package
/libgomp
371 $(call Package
/gcc
/Default
)
372 TITLE
:=OpenMP support library
375 define Package
/libgomp
/config
377 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
379 config LIBGOMP_ROOT_DIR
381 prompt
"libgomp shared library base directory"
382 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
383 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
384 default
"/" if NATIVE_TOOLCHAIN
386 config LIBGOMP_FILE_SPEC
388 prompt
"libgomp shared library files (use wildcards)"
389 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
390 default
"./lib/libgomp.so*"
397 $(call Package
/libc
/Default
)
401 TITLE
:=LDD trace utility
404 define Package
/ldd
/config
406 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
410 prompt
"ldd trace utility base directory"
411 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
412 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
413 default
"/" if NATIVE_TOOLCHAIN
417 prompt
"ldd trace utility file"
418 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
419 default
"./usr/bin/ldd"
425 define Package
/ldconfig
426 $(call Package
/libc
/Default
)
430 TITLE
:=Shared library path configuration
433 define Package
/ldconfig
/config
435 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
437 config LDCONFIG_ROOT_DIR
439 prompt
"ldconfig base directory"
440 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
441 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
442 default
"/" if NATIVE_TOOLCHAIN
444 config LDCONFIG_FILE_SPEC
446 prompt
"ldconfig file"
447 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
448 default
"./sbin/ldconfig"
454 mkdir
-p
$(PKG_BUILD_DIR
)
460 LIBGCC_A
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc_pic.a
))
461 LIBGCC_MAP
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc.map
))
462 LIBGCC_SO
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
*))
464 ifneq ($(LIBGCC_SO
),)
465 define Build
/Compile
/libgcc
466 $(CP
) $(LIBGCC_SO
) $(PKG_BUILD_DIR
)/
470 define Build
/Compile
/Default
471 $(call Build
/Compile
/libgcc
)
472 $(call Build
/Compile
/$(LIBC
))
474 Build
/Compile
= $(Build
/Compile
/Default
)
476 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
478 define Package
/libgcc
/install
479 $(INSTALL_DIR
) $(1)/lib
480 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
* $(1)/lib
/
483 define Package
/libatomic
/install
484 $(INSTALL_DIR
) $(1)/lib
485 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libatomic.so.
* $(1)/lib
/
488 define Package
/libgfortran
/install
489 $(INSTALL_DIR
) $(1)/usr
/lib
490 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgfortran.so.
* $(1)/usr
/lib
/
493 define Package
/libstdcpp
/install
494 $(INSTALL_DIR
) $(1)/usr
/lib
495 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libstdc
++.so.
* $(1)/usr
/lib
/
496 rm -rf
$(1)/usr
/lib
/*-gdb.py
499 define Package
/libasan
/install
500 $(INSTALL_DIR
) $(1)/lib
501 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libasan.so.
* $(1)/lib
/
504 define Package
/libtsan
/install
505 $(INSTALL_DIR
) $(1)/lib
506 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libtsan.so.
* $(1)/lib
/
509 define Package
/liblsan
/install
510 $(INSTALL_DIR
) $(1)/lib
511 $(CP
) $(TOOLCHAIN_DIR
)/lib
/liblsan.so.
* $(1)/lib
/
514 define Package
/libubsan
/install
515 $(INSTALL_DIR
) $(1)/lib
516 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libubsan.so.
* $(1)/lib
/
519 define Package
/glibc
/install
520 $(CP
) .
/glibc-files
/* $(1)/
521 rm -f
$(1)/etc
/localtime
522 $(LN
) /tmp
/localtime
$(1)/etc
/localtime
523 $(INSTALL_DIR
) $(1)/lib
525 $(TOOLCHAIN_DIR
)/lib
/ld*.so.
* \
527 for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil
; do \
528 for file in
$(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
*; do \
529 if
[ -e
"$$$$file" ]; then \
530 $(CP
) $$$$file $(1)/lib
/; \
536 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR
)/lib
/libc.so
*)))
538 define Package
/musl
/install
539 $(INSTALL_DIR
) $(1)/lib
$(1)/usr
/bin
541 $(TOOLCHAIN_DIR
)/lib
/ld-musl-
*.so
* \
544 $(TOOLCHAIN_DIR
)/lib
/libc.so
* \
546 $(LN
) ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
549 define Package
/libc
/install
550 $(call Package
/$(LIBC
)/install,$1)
553 define Package
/libc
/install_lib
554 $(CP
) $(filter-out %/libdl_pic.a
%/libpthread_pic.a
%/libresolv_pic.a
,$(wildcard $(TOOLCHAIN_DIR
)/lib
/lib
*.a
)) $(1)/lib
/
555 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libc_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libc_so.a
$(1)/lib
/libc_pic.a
)
556 $(if
$(LIBGCC_MAP
), \
557 $(CP
) $(LIBGCC_A
) $(1)/lib
/libgcc_s_pic.a
; \
558 $(CP
) $(LIBGCC_MAP
) $(1)/lib
/libgcc_s_pic.map \
562 define Package
/libpthread
/install
563 $(INSTALL_DIR
) $(1)/lib
564 ifneq ($(CONFIG_USE_MUSL
),y
)
566 $(TOOLCHAIN_DIR
)/lib
/libpthread.so.
* \
571 define Package
/libthread-db
/install
572 $(INSTALL_DIR
) $(1)/lib
574 $(TOOLCHAIN_DIR
)/lib
/libthread_db.so.
* $(1)/lib
577 define Package
/libpthread
/install_lib
578 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
$(1)/lib
/libpthread_pic.a
)
581 define Package
/librt
/install
582 $(INSTALL_DIR
) $(1)/lib
583 ifneq ($(CONFIG_USE_MUSL
),y
)
585 $(TOOLCHAIN_DIR
)/lib
/librt.so.
* \
590 define Package
/ldd
/install
591 $(INSTALL_DIR
) $(1)/usr
/bin
/
592 $(CP
) $(TOOLCHAIN_DIR
)/bin
/ldd
$(1)/usr
/bin
/
593 sed
-i
's,^#!.*,#!/bin/sh,' $(1)/usr
/bin
/ldd
596 define Package
/ldconfig
/install
597 $(INSTALL_DIR
) $(1)/sbin
/
598 $(CP
) $(TOOLCHAIN_DIR
)/sbin
/ldconfig
$(1)/sbin
/
603 define Package
/libgcc
/install
604 for file in
$(call qstrip
,$(CONFIG_LIBGCC_FILE_SPEC
)); do \
605 $(INSTALL_DIR
) $(1)/lib
; \
606 $(CP
) $(call qstrip
,$(CONFIG_LIBGCC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
611 define Package
/libgfortran
/install
612 for file in
$(call qstrip
,$(CONFIG_LIBGFORTRAN_FILE_SPEC
)); do \
613 $(INSTALL_DIR
) $(1)/lib
; \
614 $(CP
) $(call qstrip
,$(CONFIG_LIBGFORTRAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
618 define Package
/libstdcpp
/install
619 for file in
$(call qstrip
,$(CONFIG_LIBSTDCPP_FILE_SPEC
)); do \
620 $(INSTALL_DIR
) $(1)/lib
; \
621 $(CP
) $(call qstrip
,$(CONFIG_LIBSTDCPP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
626 define Package
/libasan
/install
627 for file in
$(call qstrip
,$(CONFIG_LIBASAN_FILE_SPEC
)); do \
628 $(INSTALL_DIR
) $(1)/lib
; \
629 $(CP
) $(call qstrip
,$(CONFIG_LIBASAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
634 define Package
/libtsan
/install
635 for file in
$(call qstrip
,$(CONFIG_LIBTSAN_FILE_SPEC
)); do \
636 $(INSTALL_DIR
) $(1)/lib
; \
637 $(CP
) $(call qstrip
,$(CONFIG_LIBTSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
642 define Package
/liblsan
/install
643 for file in
$(call qstrip
,$(CONFIG_LIBLSAN_FILE_SPEC
)); do \
644 $(INSTALL_DIR
) $(1)/lib
; \
645 $(CP
) $(call qstrip
,$(CONFIG_LIBLSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
650 define Package
/libubsan
/install
651 for file in
$(call qstrip
,$(CONFIG_LIBUBSAN_FILE_SPEC
)); do \
652 $(INSTALL_DIR
) $(1)/lib
; \
653 $(CP
) $(call qstrip
,$(CONFIG_LIBUBSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
658 define Package
/glibc
/install
661 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_ROOT_DIR
)/lib
/libc.so
*)))
663 define Package
/musl
/install
664 $(INSTALL_DIR
) $(1)/usr
/bin
665 $(LN
) ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
668 define Package
/libc
/install
669 for file in
$(call qstrip
,$(CONFIG_LIBC_FILE_SPEC
)); do \
670 $(INSTALL_DIR
) $(1)/lib
; \
671 $(CP
) $(call qstrip
,$(CONFIG_LIBC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
674 $(call Package
/$(LIBC
)/install,$1)
677 define Package
/libpthread
/install
678 for file in
$(call qstrip
,$(CONFIG_LIBPTHREAD_FILE_SPEC
)); do \
679 $(INSTALL_DIR
) $(1)/lib
; \
680 $(CP
) $(call qstrip
,$(CONFIG_LIBPTHREAD_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
685 define Package
/libthread-db
/install
686 for file in
$(call qstrip
,$(CONFIG_LIBTHREAD_DB_FILE_SPEC
)); do \
687 $(INSTALL_DIR
) $(1)/lib
; \
688 $(CP
) $(call qstrip
,$(CONFIG_LIBTHREAD_DB_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
693 define Package
/librt
/install
694 for file in
$(call qstrip
,$(CONFIG_LIBRT_FILE_SPEC
)); do \
695 $(INSTALL_DIR
) $(1)/lib
; \
696 $(CP
) $(call qstrip
,$(CONFIG_LIBRT_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
701 define Package
/libatomic
/install
702 for file in
$(call qstrip
,$(CONFIG_LIBATOMIC_FILE_SPEC
)); do \
703 $(INSTALL_DIR
) $(1)/lib
; \
704 $(CP
) $(call qstrip
,$(CONFIG_LIBATOMIC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
709 define Package
/libgomp
/install
710 for file in
$(call qstrip
,$(CONFIG_LIBGOMP_FILE_SPEC
)); do \
711 $(INSTALL_DIR
) $(1)/lib
; \
712 $(CP
) $(call qstrip
,$(CONFIG_LIBGOMP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
717 define Package
/ldd
/install
718 for file in
$(call qstrip
,$(CONFIG_LDD_FILE_SPEC
)); do \
719 dir=`dirname $$$$file` ; \
720 $(INSTALL_DIR
) $(1)/$$$$dir ; \
721 $(CP
) $(call qstrip
,$(CONFIG_LDD_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
726 define Package
/ldconfig
/install
727 for file in
$(call qstrip
,$(CONFIG_LDCONFIG_FILE_SPEC
)); do \
728 dir=`dirname $$$$file` ; \
729 $(INSTALL_DIR
) $(1)/$$$$dir ; \
730 $(CP
) $(call qstrip
,$(CONFIG_LDCONFIG_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
737 $(eval
$(call BuildPackage
,libc
))
738 $(eval
$(call BuildPackage
,libgcc
))
739 $(eval
$(call BuildPackage
,libatomic
))
740 $(eval
$(call BuildPackage
,libstdcpp
))
741 $(eval
$(call BuildPackage
,libasan
))
742 $(eval
$(call BuildPackage
,libtsan
))
743 $(eval
$(call BuildPackage
,liblsan
))
744 $(eval
$(call BuildPackage
,libubsan
))
745 $(eval
$(call BuildPackage
,libpthread
))
746 $(eval
$(call BuildPackage
,libthread-db
))
747 $(eval
$(call BuildPackage
,librt
))
748 $(eval
$(call BuildPackage
,libgfortran
))
749 $(eval
$(call BuildPackage
,libgomp
))
750 $(eval
$(call BuildPackage
,ldd
))
751 $(eval
$(call BuildPackage
,ldconfig
))