Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch more prep updates for mold linker support in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 23, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:33 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    more prep updates for mold linker support in 123.09beta01

    - mold is a faster drop-in replacement for existing Unix linkers - GNU gold, LLVM lld and GNU bfd to potentially improve source compilation times
    - update custom mold linker RPM version to 1.1 https://github.com/rui314/mold
    - prep for optional mold linker support to addons/ffmpeg.sh via custom settings file you create at /etc/centminmod/ffmpeg_config.inc with variable FFMPEG_LDMOLD='y'


    example of ffmpeg binary built via centmin.sh menu option 19 using optional mold linker instead of default GNU bfd linker

    /opt/bin/ffmpeg -version

    ffmpeg version git-2022-02-22-9e2deba Copyright (c) 2000-2022 the FFmpeg developers
    built with gcc 10 (GCC)
    configuration: --prefix=/opt/ffmpeg --extra-cflags=' -I/opt/ffmpeg/include' --extra-ldflags='-L/opt/ffmpeg/lib -B/usr/local/libexec/mold' --bindir=/opt/bin --pkg-config-flags=--static --extra-libs=-lpthread --extra-libs=-lm --enable-gpl --disable-debug --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libass --enable-libzimg --enable-swscale --enable-shared
    libavutil 57. 21.100 / 57. 21.100
    libavcodec 59. 21.100 / 59. 21.100
    libavformat 59. 17.102 / 59. 17.102
    libavdevice 59. 5.100 / 59. 5.100
    libavfilter 8. 27.100 / 8. 27.100
    libswscale 6. 5.100 / 6. 5.100
    libswresample 4. 4.100 / 4. 4.100
    libpostproc 56. 4.100 / 56. 4.100

    readelf -p .comment /opt/bin/ffmpeg

    String dump of section '.comment':
    [ 0] GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-44)
    [ 2d] GCC: (GNU) 10.2.1 20210130 (Red Hat 10.2.1-11)
    [ 5c] mold 1.1 (89612b709638b90c8a044e2f96f47d28054ba789; compatible with GNU ld)

    Continue reading...

    123.09beta01 branch