dev-libs/boost-static: actually enable PIC, fix the description
authorgit <redacted>
Sun, 5 Jul 2026 18:57:57 +0000 (14:57 -0400)
committergit <redacted>
Sun, 5 Jul 2026 18:57:57 +0000 (14:57 -0400)
dev-libs/boost-static/boost-static-1.90.0-r2.ebuild
dev-libs/boost-static/boost-static-1.91.0-r1.ebuild

index 579f5b653218f9c364107937cdf8cae5b21ed148..fb9b4178bab98a48e4400649f6ebacd0c68826b0 100644 (file)
@@ -11,7 +11,7 @@ inherit dot-a edo flag-o-matic multiprocessing python-r1 toolchain-funcs multili
 
 MY_PV="$(ver_rs 1- _)"
 
-DESCRIPTION="Boost Libraries for C++"
+DESCRIPTION="Static Boost Libraries for C++"
 HOMEPAGE="https://www.boost.org/"
 SRC_URI="https://archives.boost.io/release/${PV}/source/boost_${MY_PV}.tar.bz2"
 S="${WORKDIR}/${PN%-*}_${MY_PV}"
@@ -213,8 +213,6 @@ src_configure() {
                # https://svn.boost.org/trac/boost/ticket/7105
                threading=multi
                link=static
-               # enables PIC
-               visibility=global
                # this seems to be the only way to disable compression algorithms
                # https://www.boost.org/doc/libs/1_70_0/libs/iostreams/doc/installation.html#boost-build
                -sNO_BZIP2=$(usex bzip2 0 1)
@@ -231,7 +229,8 @@ src_configure() {
        fi
 
        # Use C++17 globally as of 1.80
-       append-cxxflags -std=c++17
+       append-cflags -fPIC
+       append-cxxflags -std=c++17 -fPIC
 
        if [[ ${CHOST} != *-darwin* ]]; then
                # On modern macOS, file I/O is already 64-bit by default,
index 6d34a050485daadb131881f84640ce52d2c9dc41..1231a6dd7ab2a465c1e3f5c791f07cc5d19e4881 100644 (file)
@@ -11,7 +11,7 @@ inherit dot-a edo flag-o-matic multiprocessing python-r1 toolchain-funcs multili
 
 MY_PV="$(ver_rs 1- _)"
 
-DESCRIPTION="Boost Libraries for C++"
+DESCRIPTION="Static Boost Libraries for C++"
 HOMEPAGE="https://www.boost.org/"
 SRC_URI="https://archives.boost.io/release/${PV}/source/boost_${MY_PV}.tar.bz2"
 S="${WORKDIR}/${PN%-*}_${MY_PV}"
@@ -214,8 +214,6 @@ src_configure() {
                # https://svn.boost.org/trac/boost/ticket/7105
                threading=multi
                link=static
-               # enables PIC
-               visibility=global
                # this seems to be the only way to disable compression algorithms
                # https://www.boost.org/doc/libs/1_70_0/libs/iostreams/doc/installation.html#boost-build
                -sNO_BZIP2=$(usex bzip2 0 1)
@@ -232,7 +230,8 @@ src_configure() {
        fi
 
        # Use C++17 globally as of 1.80
-       append-cxxflags -std=c++17
+       append-cflags -fPIC
+       append-cxxflags -std=c++17 -fPIC
 
        if [[ ${CHOST} != *-darwin* ]]; then
                # On modern macOS, file I/O is already 64-bit by default,