diff options
author | midipix <writeonce@midipix.org> | 2020-08-16 17:00:44 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-08-16 18:04:08 +0000 |
commit | b0742f9e4c8f467143cf3c15c1de6e17202159b2 (patch) | |
tree | c2348aced30d581e2e02e7e41be6bf9a940cb94c /sofort/ccenv | |
parent | 7c3916e368e4a00ca063a6d3e02ad3c62611e60b (diff) | |
download | w32lib-b0742f9e4c8f467143cf3c15c1de6e17202159b2.tar.bz2 w32lib-b0742f9e4c8f467143cf3c15c1de6e17202159b2.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" } |