summaryrefslogtreecommitdiff
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-08-16 17:00:44 +0000
committermidipix <writeonce@midipix.org>2020-08-16 18:03:57 +0000
commit147816aee86d9dea3d55bfc125c9300a097a91b8 (patch)
tree1b4b3e4cf0a9c600bb8421e1b2ba4ff6f7949007 /sofort
parent0d25bba7b9d75818f041c43362852cd103ff8824 (diff)
downloadapimagic-147816aee86d9dea3d55bfc125c9300a097a91b8.tar.bz2
apimagic-147816aee86d9dea3d55bfc125c9300a097a91b8.tar.xz
build system: shared library logic: support dso-implemented-as-archive targets.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/ccenv/ccenv.sh14
-rw-r--r--sofort/config/config.vars3
2 files changed, 17 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"
}
diff --git a/sofort/config/config.vars b/sofort/config/config.vars
index 524b746..6f7fbbc 100644
--- a/sofort/config/config.vars
+++ b/sofort/config/config.vars
@@ -131,3 +131,6 @@ disable_static
use_custom_cfgdefs
use_custom_usrdefs
+
+shared_lib_cmd
+shared_lib_ldflags