NB mosquitto Solaris 11.4 build

T.B.C. 😉 https://www.nest.org.ru/2018/02/11/nb-solaris-alternative-linker/

cd /develop/source/SmartHome/mqtt/
git clone git@github.com:eclipse/mosquitto.git
PATH="/opt/developerstudio12.5/bin:/usr/gnu/bin:/usr/local/bin:/develop/build/bin/:/usr/opengrok/bin:/usr/bin:/usr/sbin:/export/home/ilyxa/.local/bin:/develop/source/mpd/ninja" ; export $PATH
cd mosquitto/
#gmake -j16 CFLAGS="-D__EXTENSIONS__ -m64" CC=cc DESTDIR=/develop/build/mosquitto WITH_DOCS=no V=0 LDFLAGS="-m64"
gmake -j16 CFLAGS="-D__EXTENSIONS__ -m64" \
DESTDIR=/develop/build/SmartHome WITH_DOCS=no V=0 \
LDFLAGS="-m64" CXX="c++" CC="cc" \
WITH_STATIC_LIBRARIES=yes \
VERSION=$(git describe --long | sed 's/^foo-//;s/([^-]*-g)/r\1/;s/-/./g') \
STRIP=gstrip prefix="/." \
install

Работает, бодро. Вернулся на Solaris с MQTT (rabbitmq нативный очень стар и тяжёл).

Leave a Reply

Your email address will not be published. Required fields are marked *

scat