build: use autotools for libyaml
This commit is contained in:
1 parent
ebf0867db6
commit
03fb4aece5
2 files changed
+14
-12
No files matched your search
+7
-6
@@ -517,12 +517,13 @@ RUN git clone --branch=1.13.3 --depth=1 https://github.com/maxmind/libmaxminddb.
|
|||||||
&& rm -rf build src
|
&& rm -rf build src
|
||||||
|
|
||||||
RUN git clone --branch=0.2.5 --depth=1 https://github.com/yaml/libyaml.git 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 \
|
&& cd src \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
&& ./bootstrap \
|
||||||
-DBUILD_TESTING=OFF \
|
&& CFLAGS=-fPIC ./configure --prefix=/usr/local --disable-shared --enable-static \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
&& make --jobs="$(nproc)" \
|
||||||
&& cmake --build build --parallel "$(nproc)" --target install \
|
&& make install \
|
||||||
&& rm -rf build src
|
&& cd .. \
|
||||||
|
&& rm -rf src
|
||||||
|
|
||||||
RUN git clone --branch=v2.15.3 --depth=1 https://gitlab.gnome.org/GNOME/libxml2.git 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 \
|
&& cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
|||||||
@@ -524,12 +524,13 @@ RUN git clone --branch=1.13.3 --depth=1 https://github.com/maxmind/libmaxminddb.
|
|||||||
&& rm -rf build src
|
&& rm -rf build src
|
||||||
|
|
||||||
RUN git clone --branch=0.2.5 --depth=1 https://github.com/yaml/libyaml.git 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 \
|
&& cd src \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
&& ./bootstrap \
|
||||||
-DBUILD_TESTING=OFF \
|
&& CFLAGS=-fPIC ./configure --prefix=/usr/local --disable-shared --enable-static \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
&& make --jobs="$(nproc)" \
|
||||||
&& cmake --build build --parallel "$(nproc)" --target install \
|
&& make install \
|
||||||
&& rm -rf build src
|
&& cd .. \
|
||||||
|
&& rm -rf src
|
||||||
|
|
||||||
RUN git clone --branch=v2.15.3 --depth=1 https://gitlab.gnome.org/GNOME/libxml2.git 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 \
|
&& cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
|||||||
Reference in new issue
Block a user