package/base-files/Makefile |
99 | 99 | endmenu |
100 | 100 | endef |
101 | 101 | |
102 | | |
103 | 102 | define Package/libssp |
104 | 103 | $(call Package/gcc/Default) |
105 | 104 | DEPENDS+=@SSP_SUPPORT |
... | ... | |
246 | 245 | endef |
247 | 246 | |
248 | 247 | |
| 248 | define Package/libgfortran |
| 249 | $(call Package/gcc/Default) |
| 250 | TITLE:=GFortran support library |
| 251 | DEPENDS+=@!(TARGET_avr32||TARGET_coldfire) @INSTALL_GFORTRAN |
| 252 | endef |
| 253 | |
| 254 | define Package/libgfortran/config |
| 255 | menu "Configuration" |
| 256 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 257 | |
| 258 | config LIBGFORTRAN_ROOT_DIR |
| 259 | string |
| 260 | prompt "libgfortran shared library base directory" |
| 261 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 262 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
| 263 | default "/" if NATIVE_TOOLCHAIN |
| 264 | |
| 265 | config LIBGFORTRAN_FILE_SPEC |
| 266 | string |
| 267 | prompt "libgcc shared library files (use wildcards)" |
| 268 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 269 | default "./usr/lib/libgfortran.so.*" |
| 270 | |
| 271 | endmenu |
| 272 | endef |
| 273 | |
249 | 274 | define Package/ldd |
250 | 275 | $(call Package/libc/Default) |
251 | 276 | SECTION:=utils |
... | ... | |
465 | 490 | $(CP) $(PKG_BUILD_DIR)/libgcc_s.so.* $(1)/lib/ |
466 | 491 | endef |
467 | 492 | |
| 493 | define Package/libgfortran/install |
| 494 | $(INSTALL_DIR) $(1)/usr/lib |
| 495 | $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/ |
| 496 | endef |
| 497 | |
468 | 498 | define Package/libssp/install |
469 | 499 | $(INSTALL_DIR) $(1)/lib |
470 | 500 | $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/ |
... | ... | |
580 | 610 | exit 0 |
581 | 611 | endef |
582 | 612 | |
| 613 | define Package/libgfortran/install |
| 614 | for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \ |
| 615 | dir=`dirname $$$$file` ; \ |
| 616 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
| 617 | $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
| 618 | done |
| 619 | endef |
| 620 | |
583 | 621 | define Package/libssp/install |
584 | 622 | for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \ |
585 | 623 | dir=`dirname $$$$file` ; \ |
... | ... | |
656 | 694 | $(eval $(call BuildPackage,libstdcpp)) |
657 | 695 | $(eval $(call BuildPackage,libpthread)) |
658 | 696 | $(eval $(call BuildPackage,librt)) |
| 697 | $(eval $(call BuildPackage,libgfortran)) |
659 | 698 | $(eval $(call BuildPackage,ldd)) |
660 | 699 | $(eval $(call BuildPackage,ldconfig)) |