Merge pull request #146582 from anmonteiro/anmonteiro/adns-fix-static

adns: fix static compilation
This commit is contained in:
Ryan Burns 2021-11-20 18:12:57 -08:00 committed by GitHub
commit ce8a529715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ gnum4 ];
configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic";
preConfigure =
lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";