Merge pull request #87983 from lourkeur/cleanup_libfakeXinerama

fakeXinerama: clean up minor issues
This commit is contained in:
Lassulus 2020-08-22 18:45:16 +02:00 committed by GitHub
commit 344787cf8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 libXinerama ];
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
gcc -O2 -Wall fakeXinerama.c -fPIC -o libfakeXinerama.so.1.0 -shared
'';
@ -20,6 +18,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/lib
cp libfakeXinerama.so.1.0 $out/lib
ln -s libfakeXinerama.so.1.0 $out/lib/libXinerama.so.1.0
ln -s libXinerama.so.1.0 $out/lib/libXinerama.so.1
ln -s libXinerama.so.1 $out/lib/libXinerama.so
'';