[FFmpeg-user] cannot build shared libraries on Solaris

Reindl Harald h.reindl at thelounge.net
Fri Dec 28 13:32:15 EET 2018



Am 28.12.18 um 12:25 schrieb Eric Thomas:
> "make distclean" does not remove the compat/atomics/pthread/stdatomic.o
> file on my system.

i recommend doing the same as package builds

* rm -rf buildroot
* mkdir buildroot
* configure && make

sample for a newer, static php binary on CentOS below which i need for
letsencrypt libraries using PHP 7.1 features

--------------

[builduser at backup-hosting:~]$ ls
insgesamt 20K
drwx------ 2 builduser builduser 4,0K 2018-04-10 16:58 BINARIES
drwx------ 2 builduser builduser 4,0K 2018-04-10 16:58 BUILD
drwx------ 2 builduser builduser 4,0K 2018-04-10 16:58 BUILDROOTS
drwx------ 2 builduser builduser 4,0K 2018-07-21 04:58 SOURCES
-rwx------ 1 builduser builduser 1,8K 2018-04-10 16:51 build-php-cli.sh

[builduser at backup-hosting:~]$ cat build-php-cli.sh
#!/usr/bin/bash
PHP_VERSION="7.2.12"
rm -rf /home/builduser/BUILDROOTS/php-$PHP_VERSION
tar xfJ /home/builduser/SOURCES/php-$PHP_VERSION.tar.xz -C
/home/builduser/BUILDROOTS/
cd /home/builduser/BUILDROOTS/php-$PHP_VERSION
export CFLAGS="-m64 -Os -mfpmath=sse -mavx -msse2avx -march=native
-mtune=native -ftree-vectorize -fomit-frame-pointer -fno-strict-aliasing
-fwrapv -g0"
export CC="gcc $CFLAGS"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
export CXX="gcc $CFLAGS"
./configure --quiet \
 --host=x86_64-redhat-linux \
 --build=x86_64-redhat-linux \
 --target=x86_64-redhat-linux \
 --prefix=/home/builduser/BUILD \
 --program-prefix= \
 --disable-all \
 --enable-calendar \
 --enable-cli \
 --enable-ctype \
 --enable-dom \
 --enable-filter \
 --enable-hash \
 --enable-intl \
 --enable-json \
 --enable-libxml \
 --enable-mbregex \
 --enable-mbstring \
 --enable-posix \
 --enable-simplexml \
 --enable-soap \
 --enable-static \
 --enable-xml \
 --with-curl \
 --with-iconv \
 --with-layout=GNU \
 --with-openssl \
 --with-pcre-regex \
 --with-system-ciphers \
 --with-zlib \
 --without-apxs2 \
 --without-config-file-path \
 --without-config-file-scan-dir \
 --without-pcre-jit \
 --disable-cgi \
 --disable-dmalloc \
 --disable-dtrace \
 --disable-gcov \
 --disable-ipv6 \
 --disable-phpdbg \
 --disable-rpath \
 --disable-shared \
 --disable-short-tags
make --quiet -j4
make install
strip -s --strip-unneeded /home/builduser/BUILD/bin/php
mv --force /home/builduser/BUILD/bin/php /home/builduser/BINARIES/
rm -rf /home/builduser/BUILD/*
rm -rf /home/builduser/BUILDROOTS/php-$PHP_VERSION
chmod 755 /home/builduser/BINARIES/php
ls /home/builduser/BINARIES/php
echo ""
/home/builduser/BINARIES/php -v
echo ""
/home/builduser/BINARIES/php -m


More information about the ffmpeg-user mailing list