Commit b6f9eb6
0
plików
+0
dodanych
-0
usuniętych
@@ -25,9 +25,16 @@ sha256sums:
25
25
build: |
26
26
cd ${pkgname}-${pkgver}
27
27
28
- # Wszystkie biblioteki Abseil zainstalowane w systemie (pkgconfig: absl_*.pc)
29
- ABSL_MODULES="$(pkg-config --list-all | awk '/^absl_/ {print $1}' | tr '\n' ' ')"
30
- ABSL_LIBS="$(pkg-config --libs ${ABSL_MODULES})"
28
+ # Bez pkg-config: .pc Abseil w rootfsie są niespójne wersyjnie (20260526 vs 20260817)
29
+ ABSL_LIBS=""
30
+ for f in /usr/lib/libabsl_*.so; do
31
+ n="$(basename "$f" .so)"
32
+ case "$n" in
33
+ *test*|*mock*|*gtest*|*benchmark*) continue ;;
34
+ esac
35
+ ABSL_LIBS="${ABSL_LIBS} -l${n#lib}"
36
+ done
37
+ [ -n "${ABSL_LIBS}" ] || { echo "Brak /usr/lib/libabsl_*.so"; exit 1; }
31
38
32
39
cmake -S . -B build -G Ninja \
33
40
-D CMAKE_INSTALL_PREFIX=/usr \