package/base-files/Makefile |
100 | 100 | endmenu |
101 | 101 | endef |
102 | 102 | |
103 | | |
104 | 103 | define Package/libssp |
105 | 104 | $(call Package/gcc/Default) |
106 | 105 | DEPENDS+=@SSP_SUPPORT |
... | ... | |
247 | 246 | endef |
248 | 247 | |
249 | 248 | |
| 249 | define Package/libgfortran |
| 250 | $(call Package/gcc/Default) |
| 251 | TITLE:=GFortran support library |
| 252 | DEPENDS+=@!(TARGET_avr32||TARGET_coldfire) |
| 253 | endef |
| 254 | |
| 255 | define Package/libgfortran/config |
| 256 | menu "Configuration" |
| 257 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 258 | |
| 259 | config LIBGFORTRAN_ROOT_DIR |
| 260 | string |
| 261 | prompt "libgfortran shared library base directory" |
| 262 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 263 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
| 264 | default "/" if NATIVE_TOOLCHAIN |
| 265 | |
| 266 | config LIBGFORTRAN_FILE_SPEC |
| 267 | string |
| 268 | prompt "libgcc shared library files (use wildcards)" |
| 269 | depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
| 270 | default "./usr/lib/libgfortran.so.*" |
| 271 | |
| 272 | endmenu |
| 273 | endef |
| 274 | |
250 | 275 | define Package/ldd |
251 | 276 | $(call Package/libc/Default) |
252 | 277 | SECTION:=utils |
... | ... | |
402 | 427 | $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/ |
403 | 428 | endef |
404 | 429 | |
| 430 | define Package/libgfortran/install |
| 431 | $(INSTALL_DIR) $(1)/usr/lib |
| 432 | $(CP) $(TOOLCHAIN_DIR)/usr/lib/libgfortran.so.* $(1)/usr/lib/ |
| 433 | endef |
| 434 | |
405 | 435 | define Package/libssp/install |
406 | 436 | $(INSTALL_DIR) $(1)/lib |
407 | 437 | $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/ |
... | ... | |
497 | 527 | done |
498 | 528 | endef |
499 | 529 | |
| 530 | define Package/libgfortran/install |
| 531 | for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \ |
| 532 | dir=`dirname $$$$file` ; \ |
| 533 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
| 534 | $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
| 535 | done |
| 536 | endef |
| 537 | |
500 | 538 | define Package/libssp/install |
501 | 539 | for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \ |
502 | 540 | dir=`dirname $$$$file` ; \ |
... | ... | |
566 | 604 | $(eval $(call BuildPackage,libstdcpp)) |
567 | 605 | $(eval $(call BuildPackage,libpthread)) |
568 | 606 | $(eval $(call BuildPackage,librt)) |
| 607 | $(eval $(call BuildPackage,libgfortran)) |
569 | 608 | $(eval $(call BuildPackage,ldd)) |
570 | 609 | $(eval $(call BuildPackage,ldconfig)) |