summaryrefslogtreecommitdiffstats
path: root/mongodb
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-03-03 23:09:03 +0000
committer Eric Hameleers <alien@slackware.com>2021-03-03 23:09:03 +0000
commit804750bd141a4e3a40dbfd8995f4d0bf27b3ddc9 (patch)
treeadc4a1bf69f5afefbbf158acfee0da147fcb6640 /mongodb
parent73823cc6eb5acccf067d882cc8d6348e4d52bd51 (diff)
downloadasb-804750bd141a4e3a40dbfd8995f4d0bf27b3ddc9.tar.gz
asb-804750bd141a4e3a40dbfd8995f4d0bf27b3ddc9.tar.xz
mongodb: static build is required on Slackware 14.2 where we compile using a non-default gcc version and cannot depend on the system libstdc++ and libgcc_s
Diffstat (limited to 'mongodb')
-rwxr-xr-xmongodb/build/mongodb.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/mongodb/build/mongodb.SlackBuild b/mongodb/build/mongodb.SlackBuild
index cf5f13f7..bd2da0d6 100755
--- a/mongodb/build/mongodb.SlackBuild
+++ b/mongodb/build/mongodb.SlackBuild
@@ -29,6 +29,8 @@
# Descr: document database server
# URL: https://www.mongodb.org/
# Build needs: python-cheetah3, python-psutil, python-yaml
+# (on Slackware 14.2 additionally: python3, python3-setuptools,
+# scons >= 3.,; gcc >= 8.2)
# Needs:
# Changelog:
# 4.4.4-1: 02/mar/2021 by Eric Hameleers <alien@slackware.com>
@@ -176,10 +178,12 @@ export LDFLAGS="$SLKLDFLAGS"
export CXXFLAGS="$SLKCFLAGS"
export CFLAGS="$SLKCFLAGS"
export SCONSFLAGS="$NUMJOBS"
+export LINKFLAGS="-Wl,-static-libgcc -static-libstdc++"
scons core \
--prefix=/usr \
--install-mode=legacy \
+ --link-model=static \
--release \
--disable-warnings-as-errors \
--ssl \
@@ -189,6 +193,7 @@ scons core \
scons install \
--prefix=$PKG/usr \
--install-mode=legacy \
+ --link-model=static \
--release \
--disable-warnings-as-errors \
--ssl \