aboutsummaryrefslogtreecommitdiff
path: root/xorg/xorg-server/build
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/xorg-server/build')
-rwxr-xr-xxorg/xorg-server/build24
1 files changed, 23 insertions, 1 deletions
diff --git a/xorg/xorg-server/build b/xorg/xorg-server/build
index 159e34fc..f1240691 100755
--- a/xorg/xorg-server/build
+++ b/xorg/xorg-server/build
@@ -2,9 +2,31 @@
patch -p1 < rootless_modesetting.patch
+
+(
+ # Instead of requiring libressl for the sha1 library, we
+ # are statically installing this small implementation so
+ # that we don't require an external library.
+ cd libsha1
+
+ ./configure \
+ --prefix=/usr \
+ --disable-shared
+
+ make
+ make DESTDIR="$PWD/tmp" install
+)
+
+export LDFLAGS="$LDFLAGS -L$PWD/libsha1/tmp/usr/lib"
+export CFLAGS="$CFLAGS -I$PWD/libsha1/tmp/usr/include"
+export LIBSHA1_CFLAGS="-L$PWD/libsha1/tmp/usr/lib -I$PWD/libsha1/tmp/usr/include"
+export LIBSHA1_LIBS="$PWD/libsha1/tmp/usr/lib/libsha1.a"
+
+
./configure \
--prefix=/usr \
--localstatedir=/var \
+ --disable-shared \
--disable-systemd-logind \
--disable-xwayland \
--disable-unit-tests \
@@ -14,7 +36,7 @@ patch -p1 < rootless_modesetting.patch
--enable-dri3 \
--enable-glamor \
--enable-xorg \
- --with-sha1=libcrypto \
+ --with-sha1=libsha1 \
--with-systemd-daemon=off
make