nix: fix lib:support for armv7a (#3394)
This commit is contained in:
parent
c0e8740f50
commit
b164cc2fa6
12
flake.nix
12
flake.nix
@ -253,7 +253,17 @@
|
|||||||
# we also do not want to have any dependencies listed (especially no rts!)
|
# we also do not want to have any dependencies listed (especially no rts!)
|
||||||
enableStatic = false;
|
enableStatic = false;
|
||||||
|
|
||||||
setupBuildFlags = p.component.setupBuildFlags ++ map (x: "--ghc-option=${x}") [ "-shared" "-o" "libsupport.so" ];
|
# This used to work with 8.10.7...
|
||||||
|
# setupBuildFlags = p.component.setupBuildFlags ++ map (x: "--ghc-option=${x}") [ "-shared" "-o" "libsupport.so" ];
|
||||||
|
# ... but now with 9.6+
|
||||||
|
# we have to do the -shared thing by hand.
|
||||||
|
postBuild = ''
|
||||||
|
armv7a-unknown-linux-androideabi-ghc -shared -o libsupport.so \
|
||||||
|
-optl-Wl,-u,setLineBuffering \
|
||||||
|
-optl-Wl,-u,pipe_std_to_socket \
|
||||||
|
dist/build/*.a
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
||||||
mkdir -p $out/_pkg
|
mkdir -p $out/_pkg
|
||||||
|
Loading…
Reference in New Issue
Block a user