[x265] [PATCH] Haiku support

Jérôme Duval jerome.duval+x265 at gmail.com
Sun Aug 16 22:00:45 CEST 2015


2015-08-12 9:30 GMT+02:00 Steve Borho <steve at borho.org>:
>> Here is a description of the changes:
>> 1st: Haiku has no pthread library, we need to check for a threading library.
>> 2nd: Haiku doesn't install headers in include, we add an option to
>> define such a place, defaulting to include.
>> 3rd: Haiku has no nice() function, we use the platform specific call.
>>
>> The patch is rebased against today's HG trunk and should apply cleanly.
>
> Haiku is https://www.haiku-os.org?

Yes, this is the one.

>
>> From b2a16767983618709903e175f6f3d94a36e35832 Mon Sep 17 00:00:00 2001
>> From: Timothy Gu <timothygu99 at gmail.com>
>> Date: Sun, 28 Dec 2014 07:11:55 +0000
>> Subject: Check if threading library needs to be linked separately
>>
>>
>> diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
>> index 353003e..6fd2cbe 100644
>> --- a/source/CMakeLists.txt
>> +++ b/source/CMakeLists.txt
>> @@ -66,7 +66,8 @@ else()
>>  endif()
>>
>>  if(UNIX)
>> -    list(APPEND PLATFORM_LIBS pthread)
>> +    find_package(Threads)
>> +    list(APPEND PLATFORM_LIBS ${CMAKE_THREAD_LIBS_INIT})
>
> Nice. I checked and this package pre-dates our earliest supported cmake
> version (2.8.8) so it is ok to use. The rest looks ok.

Thanks for your help.

Bye,
Jérôme


More information about the x265-devel mailing list