summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv/ccenv.sh
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-08-16 17:00:44 +0000
committermidipix <writeonce@midipix.org>2020-08-16 18:04:02 +0000
commit18acfcdfc4f87f026f258dddf1fc070e9ba6198c (patch)
tree67cb1798e5e87da6ea84afc1a6d2ce15db0b6ba6 /sofort/ccenv/ccenv.sh
parent95c7974228823daca096f0ebc2dc1c44a11e05cf (diff)
downloadpemagine-18acfcdfc4f87f026f258dddf1fc070e9ba6198c.tar.bz2
pemagine-18acfcdfc4f87f026f258dddf1fc070e9ba6198c.tar.xz
build system: shared library logic: support dso-implemented-as-archive targets.
Diffstat (limited to 'sofort/ccenv/ccenv.sh')
-rw-r--r--sofort/ccenv/ccenv.sh14
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"
}