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 | 497793b07efd3f551fd2d1f146bfb602fc81eb5b (patch) | |
tree | 4874d2ed4461408fc8238a0137714d03b0685d80 /sofort/ccenv | |
parent | 7b4c880b2ee4ddef9c07d587fc4f51d6cc788fb3 (diff) | |
download | u16ports-497793b07efd3f551fd2d1f146bfb602fc81eb5b.tar.bz2 u16ports-497793b07efd3f551fd2d1f146bfb602fc81eb5b.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" } |