@ -275,6 +275,32 @@ define Package/libgfortran/config
endmenu
e n d e f
d e f i n e P a c k a g e / l i b g o m p
$( call Package /gcc /Default )
TITLE:= OpenMP support library
e n d e f
d e f i n e P a c k a g e / l i b g o m p / c o n f i g
menu "Configuration"
depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp
config LIBGOMP_ROOT_DIR
string
prompt "libgomp shared library base directory"
depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp
default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
default "/" if NATIVE_TOOLCHAIN
config LIBGOMP_FILE_SPEC
string
prompt "libgomp shared library files (use wildcards)"
depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp
default "./lib/libgomp.so*"
endmenu
e n d e f
d e f i n e P a c k a g e / l d d
$( call Package /libc /Default )
DEPENDS:= @!USE_MUSL
@ -561,6 +587,14 @@ else
exit 0
endef
define Package/libgomp/install
for file in $( call qstrip,$( CONFIG_LIBGOMP_FILE_SPEC) ) ; do \
$( INSTALL_DIR) $( 1) /lib ; \
$( CP) $( call qstrip,$( CONFIG_LIBGOMP_ROOT_DIR) ) /$$ $$ file $( 1) /lib/ ; \
done ; \
exit 0
endef
define Package/ldd/install
for file in $( call qstrip,$( CONFIG_LDD_FILE_SPEC) ) ; do \
dir = ` dirname $$ $$ file` ; \
@ -590,5 +624,6 @@ $(eval $(call BuildPackage,libpthread))
$( eval $ ( call BuildPackage ,libthread -db ) )
$( eval $ ( call BuildPackage ,librt ) )
$( eval $ ( call BuildPackage ,libgfortran ) )
$( eval $ ( call BuildPackage ,libgomp ) )
$( eval $ ( call BuildPackage ,ldd ) )
$( eval $ ( call BuildPackage ,ldconfig ) )