diff options
author | midipix <writeonce@midipix.org> | 2020-08-16 17:00:44 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-08-16 18:03:58 +0000 |
commit | 5a5c6833d3515f99edb0d3598cf1995689e0f5aa (patch) | |
tree | 4024cefcc6c3d7a0c10394d467bfafa18750e36d /sofort/ccenv | |
parent | 483c85315144486da0109760c9c101c6ce309739 (diff) | |
download | bfirm-5a5c6833d3515f99edb0d3598cf1995689e0f5aa.tar.bz2 bfirm-5a5c6833d3515f99edb0d3598cf1995689e0f5aa.tar.xz |
build system: shared library logic: support dso-implemented-as-archive targets.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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" } |