Skip to content

Commit 3d91ac7

Browse files
committed
uuid lib is required on linux builds
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 1ac5aaf commit 3d91ac7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bootstrap-common.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if [ "${LINUX}" -eq 1 ]; then
6060
elif [ "${LINUX_TARGET}" = "linux-x86_64" ]; then
6161
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
6262
fi
63-
if ! pkg-config --exists alsa dbus-1 gl glib-2.0 libpcre pthread-stubs x11 xcb xcursor xext xfixes xproto xrandr xrender; then
63+
if ! pkg-config --exists alsa dbus-1 gl glib-2.0 libpcre pthread-stubs uuid x11 xcb xcursor xext xfixes xproto xrandr xrender; then
6464
echo "some system libs are not available, cannot continue"
6565
exit 2
6666
fi
@@ -88,6 +88,10 @@ if [ "${LINUX}" -eq 1 ]; then
8888
cp $(pkg-config --variable=pcfiledir pthread-stubs)/pthread-stubs.pc ${TARGET_PKG_CONFIG_PATH}/
8989
sed -i '/Libs.private/d' ${TARGET_PKG_CONFIG_PATH}/pthread-stubs.pc
9090
fi
91+
if [ ! -e "${TARGET_PKG_CONFIG_PATH}/uuid.pc" ]; then
92+
cp $(pkg-config --variable=pcfiledir uuid)/uuid.pc ${TARGET_PKG_CONFIG_PATH}/
93+
sed -i '/Libs.private/d' ${TARGET_PKG_CONFIG_PATH}/uuid.pc
94+
fi
9195
if [ ! -e "${TARGET_PKG_CONFIG_PATH}/x11.pc" ]; then
9296
cp $(pkg-config --variable=pcfiledir x11)/x11.pc ${TARGET_PKG_CONFIG_PATH}/
9397
sed -i '/Libs.private/d' ${TARGET_PKG_CONFIG_PATH}/x11.pc
@@ -120,10 +124,6 @@ if [ "${LINUX}" -eq 1 ]; then
120124
cp $(pkg-config --variable=pcfiledir xrender)/xrender.pc ${TARGET_PKG_CONFIG_PATH}/
121125
sed -i '/Libs.private/d' ${TARGET_PKG_CONFIG_PATH}/xrender.pc
122126
fi
123-
if [ ! -e "${TARGET_PKG_CONFIG_PATH}/uuid.pc" ]; then
124-
cp $(pkg-config --variable=pcfiledir uuid)/uuid.pc ${TARGET_PKG_CONFIG_PATH}/
125-
sed -i '/Libs.private/d' ${TARGET_PKG_CONFIG_PATH}/uuid.pc
126-
fi
127127
fi
128128

129129
# ---------------------------------------------------------------------------------------------------------------------
@@ -132,7 +132,7 @@ fi
132132
download pkg-config "${PKG_CONFIG_VERSION}" "${PKG_CONFIG_URL}"
133133
build_host_autoconf pkg-config "${PKG_CONFIG_VERSION}" "--enable-indirect-deps --with-internal-glib --with-pc-path=${TARGET_PKG_CONFIG_PATH}"
134134

135-
if [ "${CROSS_COMPILING}" -eq 1 ] && [ ! -e "${PAWPAW_PREFIX}/bin/${TOOLCHAIN_PREFIX_}pkg-config" ]; then
135+
if [ -n "${TOOLCHAIN_PREFIX_}" ] && [ ! -e "${PAWPAW_PREFIX}/bin/${TOOLCHAIN_PREFIX_}pkg-config" ]; then
136136
ln -s pkg-config "${PAWPAW_PREFIX}/bin/${TOOLCHAIN_PREFIX_}pkg-config"
137137
fi
138138

0 commit comments

Comments
 (0)