From 147816aee86d9dea3d55bfc125c9300a097a91b8 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 16 Aug 2020 17:00:44 +0000 Subject: build system: shared library logic: support dso-implemented-as-archive targets. --- sofort/ccenv/ccenv.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sofort/ccenv/ccenv.sh') diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh index 9ef0fba..f996333 100644 --- a/sofort/ccenv/ccenv.sh +++ b/sofort/ccenv/ccenv.sh @@ -1087,6 +1087,20 @@ ccenv_set_os_dso_format() ;; esac + if [ "$ccenv_cfgtype" = 'host' ]; then + case "$ccenv_cc_sofmt" in + bigaf | aiaff ) + mb_shared_lib_cmd='$(AR) -rcs' + mb_shared_lib_ldflags= + ;; + + * ) + mb_shared_lib_cmd='$(CC) -shared -o' + mb_shared_lib_ldflags='$(LDFLAGS_SHARED)' + ;; + esac + fi + ccenv_attr_epilog "$ccenv_cc_sofmt" } -- cgit v1.2.3