[vlc-devel] [PATCH] Fix libpng checking on OpenBSD

Brad brad at comstyle.com
Mon Jan 30 08:47:28 CET 2012


On 30/01/12 2:45 AM, Rémi Denis-Courmont wrote:
> On Mon, 30 Jan 2012 01:28:09 -0500, Brad Smith<brad at comstyle.com>  wrote:
>> This fixes the libpng check on OpenBSD. Although the code was passing
>> libm to ultimately link the library the test itself was not and thus
>> failing.
>
> Woe32 and probably some other platforms lack a separate libm. There should
> be $LIBM IIRC.

k, I can change that, although they'd already be broken as is.

>> diff --git a/configure.ac b/configure.ac
>> index e4afd39..1b723e3 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -2741,11 +2741,11 @@ AC_ARG_ENABLE(png,
>>   if test "${enable_png}" != "no"; then
>>   AC_CHECK_HEADERS(png.h, [
>>     VLC_SAVE_FLAGS
>> -  LDFLAGS="${LDFLAGS} -lz"
>> +  LDFLAGS="${LDFLAGS} -lz -lm"
>>     AC_CHECK_LIB(png, png_set_rows, [
>>       VLC_ADD_LIBS([png],[-lpng -lz -lm])
>>       VLC_ADD_PLUGIN([png osdmenu osd_parser])],
>> -    [],[-lz])
>> +    [],[-lz -lm])
>>     VLC_RESTORE_FLAGS
>>     ])
>>   fi
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the vlc-devel mailing list