Re: [PATCH] Make mjpegtools build with LDFLAGS=-Wl, --as-needed
Fabian Greffrath <[email protected]> Mon, 24 Mar 2008 14:31:18 +0100
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <1206365478.2934.6.camel@beppo> |
Am Samstag, den 22.03.2008, 11:47 -0700 schrieb Steven M. Schultz: > Unacceptable. Not all systems have -lpthread because the threads > routines are in the system libraries. Well, true. Please use $(PTHREAD_LIBS) or similar instead. > > > If -lpthreads has not been needed until now why is it suddenly > necessary to add it? The pthreads library is present at runtime, because it is allready loaded by other parts of the program. However, it uses symbols of this library und should thus be linked against on it. Please try to compile the code with LDFLAGS="-Wl,-z,defs -Wl,--as-needed" and you will encounter this issue. Cheers, Fabian ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/