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.*"
87 $(call Package
/gcc
/Default
)
89 TITLE
:=GCC support library
92 define Package
/libssp
/config
94 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
96 config LIBSSP_ROOT_DIR
98 prompt
"libssp shared library base directory"
99 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
100 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
101 default
"/" if NATIVE_TOOLCHAIN
103 config LIBSSP_FILE_SPEC
105 prompt
"libssp shared library files (use wildcards)"
106 depends on EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
107 default
"./lib/libssp.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
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
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
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
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
)-$(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
)
484 LIBGCC_A
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc_pic.a
))
485 LIBGCC_MAP
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc.map
))
486 LIBGCC_SO
=$(lastword
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
*))
488 define Build
/Compile
/uClibc
490 $(TOOLCHAIN_DIR
)/lib
/libuClibc-
*.so \
493 ifneq ($(LIBGCC_SO
),)
494 define Build
/Compile
/libgcc
495 $(CP
) $(LIBGCC_SO
) $(PKG_BUILD_DIR
)/
499 define Build
/Compile
/Default
500 $(call Build
/Compile
/libgcc
)
501 $(call Build
/Compile
/$(LIBC
))
503 Build
/Compile
= $(Build
/Compile
/Default
)
505 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
507 define Package
/libgcc
/install
508 $(INSTALL_DIR
) $(1)/lib
509 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgcc_s.so.
* $(1)/lib
/
512 define Package
/libatomic
/install
513 $(INSTALL_DIR
) $(1)/lib
514 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libatomic.so.
* $(1)/lib
/
517 define Package
/libgfortran
/install
518 $(INSTALL_DIR
) $(1)/usr
/lib
519 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libgfortran.so.
* $(1)/usr
/lib
/
522 define Package
/libssp
/install
523 $(INSTALL_DIR
) $(1)/lib
524 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libssp.so.
* $(1)/lib
/
527 define Package
/libstdcpp
/install
528 $(INSTALL_DIR
) $(1)/usr
/lib
529 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libstdc
++.so.
* $(1)/usr
/lib
/
532 define Package
/libasan
/install
533 $(INSTALL_DIR
) $(1)/lib
534 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libasan.so.
* $(1)/lib
/
537 define Package
/libtsan
/install
538 $(INSTALL_DIR
) $(1)/lib
539 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libtsan.so.
* $(1)/lib
/
542 define Package
/liblsan
/install
543 $(INSTALL_DIR
) $(1)/lib
544 $(CP
) $(TOOLCHAIN_DIR
)/lib
/liblsan.so.
* $(1)/lib
/
547 define Package
/libubsan
/install
548 $(INSTALL_DIR
) $(1)/lib
549 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libubsan.so.
* $(1)/lib
/
552 define Package
/glibc
/install
553 $(CP
) .
/glibc-files
/* $(1)/
554 rm -f
$(1)/etc
/localtime
555 $(LN
) /tmp
/localtime
$(1)/etc
/localtime
556 $(INSTALL_DIR
) $(1)/lib
558 $(TOOLCHAIN_DIR
)/lib
/ld*.so.
* \
559 $(TOOLCHAIN_DIR
)/lib
/ld-
$(LIBC_SO_VERSION
).so \
561 for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil
; do \
562 for file in
$(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
* $(TOOLCHAIN_DIR
)/lib
/$$$$file-$(LIBC_SO_VERSION
).so
; do \
563 if
[ -e
"$$$$file" ]; then \
564 $(CP
) $$$$file $(1)/lib
/; \
570 define Package
/uClibc
/install
571 $(INSTALL_DIR
) $(1)/lib
573 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc.so.
* \
574 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc-
$(LIBC_SO_VERSION
).so \
577 $(TOOLCHAIN_DIR
)/lib
/libc.so.
* \
578 $(TOOLCHAIN_DIR
)/lib
/libuClibc-
$(LIBC_SO_VERSION
).so \
581 $(PKG_BUILD_DIR
)/libuClibc-
* \
585 LD_MUSL_NAME
= $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR
)/lib
/libc.so
*)))
587 define Package
/musl
/install
588 $(INSTALL_DIR
) $(1)/lib
$(1)/usr
/bin
590 $(TOOLCHAIN_DIR
)/lib
/ld-musl-
*.so
* \
593 $(TOOLCHAIN_DIR
)/lib
/libc.so
* \
595 $(LN
) ..
/..
/lib
/$(LD_MUSL_NAME
) $(1)/usr
/bin
/ldd
598 define Package
/libc
/install
599 $(call Package
/$(LIBC
)/install,$1)
602 define Package
/libc
/install_lib
603 $(CP
) $(filter-out %/libdl_pic.a
%/libpthread_pic.a
%/libresolv_pic.a
,$(wildcard $(TOOLCHAIN_DIR
)/lib
/lib
*.a
)) $(1)/lib
/
604 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libc_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libc_so.a
$(1)/lib
/libc_pic.a
)
605 $(if
$(LIBGCC_MAP
), \
606 $(CP
) $(LIBGCC_A
) $(1)/lib
/libgcc_s_pic.a
; \
607 $(CP
) $(LIBGCC_MAP
) $(1)/lib
/libgcc_s_pic.map \
611 define Package
/libpthread
/install
612 $(INSTALL_DIR
) $(1)/lib
613 ifneq ($(CONFIG_USE_MUSL
)$(CONFIG_USE_UCLIBC
),y
)
615 $(TOOLCHAIN_DIR
)/lib
/libpthread.so.
* \
616 $(TOOLCHAIN_DIR
)/lib
/libpthread-
$(LIBC_SO_VERSION
).so \
621 define Package
/libthread-db
/install
622 $(INSTALL_DIR
) $(1)/lib
624 $(TOOLCHAIN_DIR
)/lib
/libthread_db.so.
* $(1)/lib
625 ifeq ($(CONFIG_USE_UCLIBC
),y
)
627 $(TOOLCHAIN_DIR
)/lib
/libthread_db-
$(LIBC_SO_VERSION
).so \
632 define Package
/libpthread
/install_lib
633 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
$(1)/lib
/libpthread_pic.a
)
636 define Package
/librt
/install
637 $(INSTALL_DIR
) $(1)/lib
638 ifneq ($(CONFIG_USE_MUSL
)$(CONFIG_USE_UCLIBC
),y
)
640 $(TOOLCHAIN_DIR
)/lib
/librt.so.
* \
641 $(TOOLCHAIN_DIR
)/lib
/librt-
$(LIBC_SO_VERSION
).so \
646 define Package
/ldd
/install
647 $(INSTALL_DIR
) $(1)/usr
/bin
/
648 $(CP
) $(TOOLCHAIN_DIR
)/bin
/ldd
$(1)/usr
/bin
/
651 define Package
/ldconfig
/install
652 $(INSTALL_DIR
) $(1)/sbin
/
653 $(CP
) $(TOOLCHAIN_DIR
)/sbin
/ldconfig
$(1)/sbin
/
658 define Package
/libgcc
/install
659 for file in
$(call qstrip
,$(CONFIG_LIBGCC_FILE_SPEC
)); do \
660 $(INSTALL_DIR
) $(1)/lib
; \
661 $(CP
) $(call qstrip
,$(CONFIG_LIBGCC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
666 define Package
/libgfortran
/install
667 for file in
$(call qstrip
,$(CONFIG_LIBGFORTRAN_FILE_SPEC
)); do \
668 $(INSTALL_DIR
) $(1)/lib
; \
669 $(CP
) $(call qstrip
,$(CONFIG_LIBGFORTRAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
673 define Package
/libssp
/install
674 for file in
$(call qstrip
,$(CONFIG_LIBSSP_FILE_SPEC
)); do \
675 $(INSTALL_DIR
) $(1)/lib
; \
676 $(CP
) $(call qstrip
,$(CONFIG_LIBSSP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
681 define Package
/libstdcpp
/install
682 for file in
$(call qstrip
,$(CONFIG_LIBSTDCPP_FILE_SPEC
)); do \
683 $(INSTALL_DIR
) $(1)/lib
; \
684 $(CP
) $(call qstrip
,$(CONFIG_LIBSTDCPP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
689 define Package
/libasan
/install
690 for file in
$(call qstrip
,$(CONFIG_LIBASAN_FILE_SPEC
)); do \
691 $(INSTALL_DIR
) $(1)/lib
; \
692 $(CP
) $(call qstrip
,$(CONFIG_LIBASAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
697 define Package
/libtsan
/install
698 for file in
$(call qstrip
,$(CONFIG_LIBTSAN_FILE_SPEC
)); do \
699 $(INSTALL_DIR
) $(1)/lib
; \
700 $(CP
) $(call qstrip
,$(CONFIG_LIBTSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
705 define Package
/liblsan
/install
706 for file in
$(call qstrip
,$(CONFIG_LIBLSAN_FILE_SPEC
)); do \
707 $(INSTALL_DIR
) $(1)/lib
; \
708 $(CP
) $(call qstrip
,$(CONFIG_LIBLSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
713 define Package
/libubsan
/install
714 for file in
$(call qstrip
,$(CONFIG_LIBUBSAN_FILE_SPEC
)); do \
715 $(INSTALL_DIR
) $(1)/lib
; \
716 $(CP
) $(call qstrip
,$(CONFIG_LIBUBSAN_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
721 define Package
/libc
/install
722 for file in
$(call qstrip
,$(CONFIG_LIBC_FILE_SPEC
)); do \
723 $(INSTALL_DIR
) $(1)/lib
; \
724 $(CP
) $(call qstrip
,$(CONFIG_LIBC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
729 define Package
/libpthread
/install
730 for file in
$(call qstrip
,$(CONFIG_LIBPTHREAD_FILE_SPEC
)); do \
731 $(INSTALL_DIR
) $(1)/lib
; \
732 $(CP
) $(call qstrip
,$(CONFIG_LIBPTHREAD_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
737 define Package
/libthread-db
/install
738 for file in
$(call qstrip
,$(CONFIG_LIBTHREAD_DB_FILE_SPEC
)); do \
739 $(INSTALL_DIR
) $(1)/lib
; \
740 $(CP
) $(call qstrip
,$(CONFIG_LIBTHREAD_DB_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
745 define Package
/librt
/install
746 for file in
$(call qstrip
,$(CONFIG_LIBRT_FILE_SPEC
)); do \
747 $(INSTALL_DIR
) $(1)/lib
; \
748 $(CP
) $(call qstrip
,$(CONFIG_LIBRT_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
753 define Package
/libatomic
/install
754 for file in
$(call qstrip
,$(CONFIG_LIBATOMIC_FILE_SPEC
)); do \
755 $(INSTALL_DIR
) $(1)/lib
; \
756 $(CP
) $(call qstrip
,$(CONFIG_LIBATOMIC_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
761 define Package
/libgomp
/install
762 for file in
$(call qstrip
,$(CONFIG_LIBGOMP_FILE_SPEC
)); do \
763 $(INSTALL_DIR
) $(1)/lib
; \
764 $(CP
) $(call qstrip
,$(CONFIG_LIBGOMP_ROOT_DIR
))/$$$$file $(1)/lib
/ ; \
769 define Package
/ldd
/install
770 for file in
$(call qstrip
,$(CONFIG_LDD_FILE_SPEC
)); do \
771 dir=`dirname $$$$file` ; \
772 $(INSTALL_DIR
) $(1)/$$$$dir ; \
773 $(CP
) $(call qstrip
,$(CONFIG_LDD_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
778 define Package
/ldconfig
/install
779 for file in
$(call qstrip
,$(CONFIG_LDCONFIG_FILE_SPEC
)); do \
780 dir=`dirname $$$$file` ; \
781 $(INSTALL_DIR
) $(1)/$$$$dir ; \
782 $(CP
) $(call qstrip
,$(CONFIG_LDCONFIG_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
789 $(eval
$(call BuildPackage
,libc
))
790 $(eval
$(call BuildPackage
,libgcc
))
791 $(eval
$(call BuildPackage
,libatomic
))
792 $(eval
$(call BuildPackage
,libssp
))
793 $(eval
$(call BuildPackage
,libstdcpp
))
794 $(eval
$(call BuildPackage
,libasan
))
795 $(eval
$(call BuildPackage
,libtsan
))
796 $(eval
$(call BuildPackage
,liblsan
))
797 $(eval
$(call BuildPackage
,libubsan
))
798 $(eval
$(call BuildPackage
,libpthread
))
799 $(eval
$(call BuildPackage
,libthread-db
))
800 $(eval
$(call BuildPackage
,librt
))
801 $(eval
$(call BuildPackage
,libgfortran
))
802 $(eval
$(call BuildPackage
,libgomp
))
803 $(eval
$(call BuildPackage
,ldd
))
804 $(eval
$(call BuildPackage
,ldconfig
))