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
)-r
$(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
/libquadmath
87 $(call Package
/gcc
/Default
)
88 DEPENDS
:=@TARGET_x86||TARGET_x86_64
+libgcc
89 TITLE
:=Quadmath support library
93 define Package
/libquadmath
/config
95 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libquadmath
97 config LIBQUADMATH_ROOT_DIR
99 prompt
"libquadmath shared library base directory"
100 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libquadmath
101 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
102 default
"/" if NATIVE_TOOLCHAIN
104 config LIBQUADMATH_FILE_SPEC
106 prompt
"libquadmath shared library files (use wildcards)"
107 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libquadmath
108 default
"./lib/libquadmath.so.*"
113 define Package
/libstdcpp
114 $(call Package
/gcc
/Default
)
116 TITLE
:=GNU Standard C
++ Library v3
120 define Package
/libstdcpp
/config
122 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
124 config LIBSTDCPP_ROOT_DIR
126 prompt
"libstdcpp shared library base directory"
127 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
128 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
129 default
"/" if NATIVE_TOOLCHAIN
131 config LIBSTDCPP_FILE_SPEC
133 prompt
"libstdc++ shared library files (use wildcards)"
134 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
135 default
"./lib/libstdc++.so.*"
141 define Package
/libasan
142 $(call Package
/gcc
/Default
)
144 TITLE
:=Runtime library for AddressSanitizer in GCC
145 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips64 @
!mips64el @
!arc
149 define Package
/libasan
/config
151 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
153 config LIBASAN_ROOT_DIR
155 prompt
"libasan shared library base directory"
156 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
157 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
158 default
"/" if NATIVE_TOOLCHAIN
160 config LIBASAN_FILE_SPEC
162 prompt
"libasan shared library files (use wildcards)"
163 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libasan
164 default
"./lib/libasan.so.*"
170 define Package
/libtsan
171 $(call Package
/gcc
/Default
)
173 TITLE
:=Runtime library for ThreadSanitizer in GCC
174 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!loongarch64 @
!mips @
!mipsel @
!mips64 @
!mips64el @
!arc
178 define Package
/libtsan
/config
180 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
182 config LIBTSAN_ROOT_DIR
184 prompt
"libtsan shared library base directory"
185 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
186 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
187 default
"/" if NATIVE_TOOLCHAIN
189 config LIBTSAN_FILE_SPEC
191 prompt
"libtsan shared library files (use wildcards)"
192 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libtsan
193 default
"./lib/libtsan.so.*"
199 define Package
/liblsan
200 $(call Package
/gcc
/Default
)
202 TITLE
:=Runtime library for LeakSanitizer in GCC
203 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!loongarch64 @
!mips @
!mipsel @
!mips64 @
!mips64el @
!arc
207 define Package
/liblsan
/config
209 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
211 config LIBLSAN_ROOT_DIR
213 prompt
"liblsan shared library base directory"
214 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
215 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
216 default
"/" if NATIVE_TOOLCHAIN
218 config LIBLSAN_FILE_SPEC
220 prompt
"liblsan shared library files (use wildcards)"
221 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_liblsan
222 default
"./lib/liblsan.so.*"
228 define Package
/libubsan
229 $(call Package
/gcc
/Default
)
231 TITLE
:=Runtime library for UndefinedBehaviorSanitizer in GCC
232 DEPENDS
:=@USE_GLIBC
+librt
+libstdcpp @
!mips64 @
!mips64el @
!arc
236 define Package
/libubsan
/config
238 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
240 config LIBUBSAN_ROOT_DIR
242 prompt
"libubsan shared library base directory"
243 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
244 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
245 default
"/" if NATIVE_TOOLCHAIN
247 config LIBUBSAN_FILE_SPEC
249 prompt
"libubsan shared library files (use wildcards)"
250 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libubsan
251 default
"./lib/libubsan.so.*"
257 define Package
/libc
/Default
259 CATEGORY
:=Base system
260 VERSION
:=$(LIBC_VERSION
)-r
$(PKG_RELEASE
)
267 $(call Package
/libc
/Default
)
271 define Package
/libc
/config
273 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
277 prompt
"libc shared library base directory"
278 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
279 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
280 default
"/" if NATIVE_TOOLCHAIN
282 config LIBC_FILE_SPEC
284 prompt
"libc shared library files (use wildcards)"
285 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
286 default
"./lib/ld{*.so*,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*,.so}"
292 define Package
/libpthread
293 $(call Package
/libc
/Default
)
294 TITLE
:=POSIX thread library
297 define Package
/libpthread
/config
299 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
301 config LIBPTHREAD_ROOT_DIR
303 prompt
"libpthread shared library base directory"
304 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
305 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
306 default
"/" if NATIVE_TOOLCHAIN
308 config LIBPTHREAD_FILE_SPEC
310 prompt
"libpthread shared library files (use wildcards)"
311 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
312 default
"./lib/libpthread{-*.so,.so.*}"
318 define Package
/libthread-db
319 $(call Package
/libc
/Default
)
321 TITLE
:=POSIX thread library debugging support
324 define Package
/libthread-db
/config
326 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
328 config LIBTHREAD_DB_ROOT_DIR
330 prompt
"POSIX thread debugging shared library base directory"
331 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
332 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
333 default
"/" if NATIVE_TOOLCHAIN
335 config LIBTHREAD_DB_FILE_SPEC
337 prompt
"POSIX thread debugging shared library files (use wildcards)"
338 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libthread-db
339 default
"./lib/libthread_db{-*.so,.so.*}"
345 $(call Package
/libc
/Default
)
346 TITLE
:=POSIX
.1b RealTime extension library
350 define Package
/librt
/config
352 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
354 config LIBRT_ROOT_DIR
356 prompt
"librt shared library base directory"
357 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
358 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
359 default
"/" if NATIVE_TOOLCHAIN
361 config LIBRT_FILE_SPEC
363 prompt
"librt shared library files (use wildcards)"
364 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
365 default
"./lib/librt{-*.so,.so.*}"
371 define Package
/libgfortran
372 $(call Package
/gcc
/Default
)
373 TITLE
:=GFortran support library
374 DEPENDS
+=@INSTALL_GFORTRAN
377 define Package
/libgfortran
/config
379 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
381 config LIBGFORTRAN_ROOT_DIR
383 prompt
"libgfortran shared library base directory"
384 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
385 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
386 default
"/" if NATIVE_TOOLCHAIN
388 config LIBGFORTRAN_FILE_SPEC
390 prompt
"libgfortran shared library files (use wildcards)"
391 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgfortran
392 default
"./usr/lib/libgfortran.so.*"
397 define Package
/libgomp
398 $(call Package
/gcc
/Default
)
399 TITLE
:=OpenMP support library
402 define Package
/libgomp
/config
404 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
406 config LIBGOMP_ROOT_DIR
408 prompt
"libgomp shared library base directory"
409 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
410 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
411 default
"/" if NATIVE_TOOLCHAIN
413 config LIBGOMP_FILE_SPEC
415 prompt
"libgomp shared library files (use wildcards)"
416 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libgomp
417 default
"./lib/libgomp.so*"
424 $(call Package
/libc
/Default
)
428 TITLE
:=LDD trace utility
431 define Package
/ldd
/config
433 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
437 prompt
"ldd trace utility base directory"
438 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
439 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
440 default
"/" if NATIVE_TOOLCHAIN
444 prompt
"ldd trace utility file"
445 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
446 default
"./usr/bin/ldd"
452 define Package
/ldconfig
453 $(call Package
/libc
/Default
)
457 TITLE
:=Shared library path configuration
460 define Package
/ldconfig
/config
462 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
464 config LDCONFIG_ROOT_DIR
466 prompt
"ldconfig base directory"
467 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
468 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
469 default
"/" if NATIVE_TOOLCHAIN
471 config LDCONFIG_FILE_SPEC
473 prompt
"ldconfig file"
474 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
475 default
"./sbin/ldconfig"
481 mkdir
-p
$(PKG_BUILD_DIR
)
487 LIBGCC_A
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc_pic.a
))
488 LIBGCC_MAP
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc.map
))
489 LIBGCC_SO
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
*))
491 ifneq ($(LIBGCC_SO
),)
492 define Build
/Compile
/libgcc
493 $(CP
) $(LIBGCC_SO
) $(PKG_BUILD_DIR
)/
497 define Build
/Compile
/Default
498 $(call Build
/Compile
/libgcc
)
499 $(call Build
/Compile
/$(LIBC
))
501 Build
/Compile
= $(Build
/Compile
/Default
)
503 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
505 define Package
/libgcc
/install
506 $(INSTALL_DIR
) $(1)/lib
507 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
* $(1)/lib
/
510 define Package
/libatomic
/install
511 $(INSTALL_DIR
) $(1)/lib
512 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libatomic.so.
* $(1)/lib
/
515 define Package
/libquadmath
/install
516 $(INSTALL_DIR
) $(1)/lib
517 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libquadmath.so.
* $(1)/lib
/
520 define Package
/libgfortran
/install
521 $(INSTALL_DIR
) $(1)/usr
/lib
522 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgfortran.so.
* $(1)/usr
/lib
/
525 define Package
/libstdcpp
/install
526 $(INSTALL_DIR
) $(1)/usr
/lib
527 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libstdc
++.so.
* $(1)/usr
/lib
/
528 rm -rf
$(1)/usr
/lib
/*-gdb.py
531 define Package
/libasan
/install
532 $(INSTALL_DIR
) $(1)/lib
533 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libasan.so.
* $(1)/lib
/
536 define Package
/libtsan
/install
537 $(INSTALL_DIR
) $(1)/lib
538 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libtsan.so.
* $(1)/lib
/
541 define Package
/liblsan
/install
542 $(INSTALL_DIR
) $(1)/lib
543 $(CP
) $(TOOLCHAIN_DIR
)/lib
/liblsan.so.
* $(1)/lib
/
546 define Package
/libubsan
/install
547 $(INSTALL_DIR
) $(1)/lib
548 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libubsan.so.
* $(1)/lib
/
551 define Package
/glibc
/install
552 $(CP
) .
/glibc-files
/* $(1)/
553 rm -f
$(1)/etc
/localtime
554 $(INSTALL_DIR
) $(1)/lib
556 $(TOOLCHAIN_DIR
)/lib
/ld*.so.
* \
558 for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil
; do \
559 for file in
$(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
*; do \
560 if
[ -e
"$$$$file" ]; then \
561 $(CP
) $$$$file $(1)/lib
/; \
567 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR
)/lib
/libc.so
*)))
569 define Package
/musl
/install
570 $(INSTALL_DIR
) $(1)/lib
$(1)/usr
/bin
572 $(TOOLCHAIN_DIR
)/lib
/ld-musl-
*.so
* \
575 $(TOOLCHAIN_DIR
)/lib
/libc.so
* \
577 $(LN
) ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
580 define Package
/libc
/install
581 $(call Package
/$(LIBC
)/install,$1)
584 define Package
/libc
/install_lib
585 $(CP
) $(filter-out %/libdl_pic.a
%/libpthread_pic.a
%/libresolv_pic.a
,$(wildcard $(TOOLCHAIN_DIR
)/lib
/lib
*.a
)) $(1)/lib
/
586 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libc_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libc_so.a
$(1)/lib
/libc_pic.a
)
587 $(if
$(LIBGCC_MAP
), \
588 $(CP
) $(LIBGCC_A
) $(1)/lib
/libgcc_s_pic.a
; \
589 $(CP
) $(LIBGCC_MAP
) $(1)/lib
/libgcc_s_pic.map \
593 define Package
/libpthread
/install
594 $(INSTALL_DIR
) $(1)/lib
595 ifneq ($(CONFIG_USE_MUSL
),y
)
597 $(TOOLCHAIN_DIR
)/lib
/libpthread.so.
* \
602 define Package
/libthread-db
/install
603 $(INSTALL_DIR
) $(1)/lib
605 $(TOOLCHAIN_DIR
)/lib
/libthread_db.so.
* $(1)/lib
608 define Package
/libpthread
/install_lib
609 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
$(1)/lib
/libpthread_pic.a
)
612 define Package
/librt
/install
613 $(INSTALL_DIR
) $(1)/lib
614 ifneq ($(CONFIG_USE_MUSL
),y
)
616 $(TOOLCHAIN_DIR
)/lib
/librt.so.
* \
621 define Package
/ldd
/install
622 $(INSTALL_DIR
) $(1)/usr
/bin
/
623 $(CP
) $(TOOLCHAIN_DIR
)/bin
/ldd
$(1)/usr
/bin
/
624 sed
-i
's,^#!.*,#!/bin/sh,' $(1)/usr
/bin
/ldd
627 define Package
/ldconfig
/install
628 $(INSTALL_DIR
) $(1)/sbin
/
629 $(CP
) $(TOOLCHAIN_DIR
)/sbin
/ldconfig
$(1)/sbin
/
634 define Package
/libgcc
/install
635 for file in
$(call qstrip
,$(CONFIG_LIBGCC_FILE_SPEC
)); do \
636 $(INSTALL_DIR
) $(1)/lib
; \
637 $(CP
) $(call qstrip
,$(CONFIG_LIBGCC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
642 define Package
/libgfortran
/install
643 for file in
$(call qstrip
,$(CONFIG_LIBGFORTRAN_FILE_SPEC
)); do \
644 $(INSTALL_DIR
) $(1)/lib
; \
645 $(CP
) $(call qstrip
,$(CONFIG_LIBGFORTRAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
649 define Package
/libstdcpp
/install
650 for file in
$(call qstrip
,$(CONFIG_LIBSTDCPP_FILE_SPEC
)); do \
651 $(INSTALL_DIR
) $(1)/lib
; \
652 $(CP
) $(call qstrip
,$(CONFIG_LIBSTDCPP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
657 define Package
/libasan
/install
658 for file in
$(call qstrip
,$(CONFIG_LIBASAN_FILE_SPEC
)); do \
659 $(INSTALL_DIR
) $(1)/lib
; \
660 $(CP
) $(call qstrip
,$(CONFIG_LIBASAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
665 define Package
/libtsan
/install
666 for file in
$(call qstrip
,$(CONFIG_LIBTSAN_FILE_SPEC
)); do \
667 $(INSTALL_DIR
) $(1)/lib
; \
668 $(CP
) $(call qstrip
,$(CONFIG_LIBTSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
673 define Package
/liblsan
/install
674 for file in
$(call qstrip
,$(CONFIG_LIBLSAN_FILE_SPEC
)); do \
675 $(INSTALL_DIR
) $(1)/lib
; \
676 $(CP
) $(call qstrip
,$(CONFIG_LIBLSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
681 define Package
/libubsan
/install
682 for file in
$(call qstrip
,$(CONFIG_LIBUBSAN_FILE_SPEC
)); do \
683 $(INSTALL_DIR
) $(1)/lib
; \
684 $(CP
) $(call qstrip
,$(CONFIG_LIBUBSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
689 define Package
/glibc
/install
692 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_ROOT_DIR
)/lib
/libc.so
*)))
694 define Package
/musl
/install
695 $(INSTALL_DIR
) $(1)/usr
/bin
696 $(LN
) ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
699 define Package
/libc
/install
700 for file in
$(call qstrip
,$(CONFIG_LIBC_FILE_SPEC
)); do \
701 $(INSTALL_DIR
) $(1)/lib
; \
702 $(CP
) $(call qstrip
,$(CONFIG_LIBC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
705 $(call Package
/$(LIBC
)/install,$1)
708 define Package
/libpthread
/install
709 for file in
$(call qstrip
,$(CONFIG_LIBPTHREAD_FILE_SPEC
)); do \
710 $(INSTALL_DIR
) $(1)/lib
; \
711 $(CP
) $(call qstrip
,$(CONFIG_LIBPTHREAD_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
716 define Package
/libthread-db
/install
717 for file in
$(call qstrip
,$(CONFIG_LIBTHREAD_DB_FILE_SPEC
)); do \
718 $(INSTALL_DIR
) $(1)/lib
; \
719 $(CP
) $(call qstrip
,$(CONFIG_LIBTHREAD_DB_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
724 define Package
/librt
/install
725 for file in
$(call qstrip
,$(CONFIG_LIBRT_FILE_SPEC
)); do \
726 $(INSTALL_DIR
) $(1)/lib
; \
727 $(CP
) $(call qstrip
,$(CONFIG_LIBRT_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
732 define Package
/libatomic
/install
733 for file in
$(call qstrip
,$(CONFIG_LIBATOMIC_FILE_SPEC
)); do \
734 $(INSTALL_DIR
) $(1)/lib
; \
735 $(CP
) $(call qstrip
,$(CONFIG_LIBATOMIC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
740 define Package
/libquadmath
/install
741 for file in
$(call qstrip
,$(CONFIG_LIBQUADMATH_FILE_SPEC
)); do \
742 $(INSTALL_DIR
) $(1)/lib
; \
743 $(CP
) $(call qstrip
,$(CONFIG_LIBQUADMATH_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
748 define Package
/libgomp
/install
749 for file in
$(call qstrip
,$(CONFIG_LIBGOMP_FILE_SPEC
)); do \
750 $(INSTALL_DIR
) $(1)/lib
; \
751 $(CP
) $(call qstrip
,$(CONFIG_LIBGOMP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
756 define Package
/ldd
/install
757 for file in
$(call qstrip
,$(CONFIG_LDD_FILE_SPEC
)); do \
758 dir=`dirname $$$$file` ; \
759 $(INSTALL_DIR
) $(1)/$$$$dir ; \
760 $(CP
) $(call qstrip
,$(CONFIG_LDD_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
765 define Package
/ldconfig
/install
766 for file in
$(call qstrip
,$(CONFIG_LDCONFIG_FILE_SPEC
)); do \
767 dir=`dirname $$$$file` ; \
768 $(INSTALL_DIR
) $(1)/$$$$dir ; \
769 $(CP
) $(call qstrip
,$(CONFIG_LDCONFIG_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
776 $(eval
$(call BuildPackage
,libc
))
777 $(eval
$(call BuildPackage
,libgcc
))
778 $(eval
$(call BuildPackage
,libatomic
))
779 $(eval
$(call BuildPackage
,libquadmath
))
780 $(eval
$(call BuildPackage
,libstdcpp
))
781 $(eval
$(call BuildPackage
,libasan
))
782 $(eval
$(call BuildPackage
,libtsan
))
783 $(eval
$(call BuildPackage
,liblsan
))
784 $(eval
$(call BuildPackage
,libubsan
))
785 $(eval
$(call BuildPackage
,libpthread
))
786 $(eval
$(call BuildPackage
,libthread-db
))
787 $(eval
$(call BuildPackage
,librt
))
788 $(eval
$(call BuildPackage
,libgfortran
))
789 $(eval
$(call BuildPackage
,libgomp
))
790 $(eval
$(call BuildPackage
,ldd
))
791 $(eval
$(call BuildPackage
,ldconfig
))