Merge pull request #86767 from sorki/cc_tor

tor: fix cross compiling
This commit is contained in:
Joachim F 2020-05-09 13:27:59 +00:00 committed by GitHub
commit 16e475de38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
patches = [ ./disable-monotonic-timer-tests.patch ];
# cross compiles correctly but needs the following
configureFlags = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"--disable-tool-name-check";
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
postPatch = ''