I need to compile a slightly older version of MHD, and manually adding -lrt at the end of my libraries string (i.e., LIB) in the build ended up fixing this, so I'd expect that to be the case with your patch as well (other changes notwithstanding). Thanks for the help!
Regards,
Alex
Date: Tue, 21 Mar 2017 13:53:49 +0100
From: Christian Grothoff <address@hidden>
To: address@hidden
Subject: Re: [libmicrohttpd] '-lrt' not resolving undefined reference
to clock_gettime?
Message-ID: <e36e3b61-fc8f-419d-0cb8-address@hidden>
Content-Type: text/plain; charset="utf-8"
glibc < 2.17 requires -lrt for clock_gettime(), older versions do not.
I've added "-lrt" in Git commit ed6509bf6ca46e39e3514680bfb81216e2a825bf
but without testing (as I don't have an ancient glibc on this system and
I am on a train...). Please let me know if it does not work...
Happy hacking!
Christian