diff options
author | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:51:36 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:51:36 +0300 |
commit | 006b299cdbbfc1a589adddf77d8466a443a9fd2d (patch) | |
tree | b5eadd1157235ce4410ae7ac1d5b93229614e6b1 /xorg/xorg-server/build | |
parent | b1eddce7b91a23d0f7961fe90252f6c06e9c9fa8 (diff) | |
download | repository-006b299cdbbfc1a589adddf77d8466a443a9fd2d.tar.gz |
xorg-server: remove libressl dependency by implementing minimal libsha1
Diffstat (limited to 'xorg/xorg-server/build')
-rwxr-xr-x | xorg/xorg-server/build | 24 |
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 |