0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #2786 from pkubaj/patch-1

Add CFLAGS necessary on PPC64(LE) to libobs.pc
This commit is contained in:
Jim 2020-06-26 01:39:45 -07:00 committed by GitHub
commit 8e28c89a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -476,6 +476,9 @@ if(UNIX AND NOT APPLE)
foreach(LIB "obs" "rt")
set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
endforeach()
if(LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64(le)?")
set(PPC64_CFLAGS "-DNO_WARN_X86_INTRINSICS -mvsx")
endif()
CONFIGURE_FILE("libobs.pc.in" "libobs.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libobs.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()

View File

@ -7,5 +7,5 @@ Name: libobs
Description: OBS Studio Library
Version: @OBS_VERSION@
Requires: x11
Cflags: -I${includedir}
Cflags: -I${includedir} @PPC64_CFLAGS@
Libs: -L${libdir} @PRIVATE_LIBS@