• Bug#1104994: mpdecimal: Use LDXXFLAGS=$(LDFLAGS)

    From Stefan Krah@21:1/5 to All on Fri May 9 15:20:01 2025
    Source: mpdecimal
    Version: 4.0.0-1
    Severity: normal
    X-Debbugs-Cc: skrah@bytereef.org




    -- System Information:
    Debian Release: trixie/sid
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.9.10-amd64 (SMP w/4 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Since there is only a single ./configure step for libmpdec and libmpdec++, mpdecimal uses the non-standard LDXXFLAGS. (Unfortunately, without separate LDXXFLAGS, it is not possible to specify -stdlib=libc++ for testing LLVM's libc++.)


    So, at some point LDXXFLAGS="$LDFLAGS" should be set, so that the C++ linker also gets "-Wl,-z,relro -Wl,-z,now -Wl,--as-needed".


    This will possibly get rid of the Lintian warning:

    https://udd.debian.org/lintian-tag/hardening-no-relro


    Stefan Krah

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)