build: use autotools for libyaml

This commit is contained in:
Guofang committed 2026-08-28 08:59:17 +08:00
1 parent ebf0867db6
commit 03fb4aece5
2 files changed
+14 -12

No files matched your search

+7 -6
View File
@@ -517,12 +517,13 @@ RUN git clone --branch=1.13.3 --depth=1 https://github.com/maxmind/libmaxminddb.
&& rm -rf build src
RUN git clone --branch=0.2.5 --depth=1 https://github.com/yaml/libyaml.git src \
&& cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
&& cmake --build build --parallel "$(nproc)" --target install \
&& rm -rf build src
&& cd src \
&& ./bootstrap \
&& CFLAGS=-fPIC ./configure --prefix=/usr/local --disable-shared --enable-static \
&& make --jobs="$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf src
RUN git clone --branch=v2.15.3 --depth=1 https://gitlab.gnome.org/GNOME/libxml2.git src \
&& cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \