Re: [PATCH] Enable compiling with --as-needed
"Steven M. Schultz" <[email protected]>
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 26 Feb 2007, Matthias Schwarzott wrote: > There is a patch needed to compile/link mjpegtools with > LDFLAGS="-Wl,-O1,--as-needed" > > Else linking will fail like this: I needed to modify the patch - rather than using the "-lliblavjpeg" form I used "liblavjpeg.la". Not sure if it's a libtool bug on some systems but using the -l form causes the error mentioned early today. Using liblavplay_la_LIBADD = liblavfile.la $(SDL_LIBS) liblavjpeg.la liblavplay_la_DEPENDENCIES = liblavfile.la liblavjpeg.la instead of liblavplay_la_LIBADD = -llavfile $(SDL_LIBS) -llavjpeg liblavplay_la_DEPENDENCIES = -llavfile -llavjpeg works. Cheers, Steven Schultz ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV