userland: Make vchostif as shared library

This helps in using this library when building
with PIE binaries

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2016-04-02 10:59:12 -07:00 committed by Andrei Gherzan
parent f1b7034077
commit 3645b27848
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 4e9aa3fffb458ca4fafd2241c18e9c8008b66ad8 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 2 Apr 2016 10:37:24 -0700
Subject: [PATCH] build shared library for vchostif
Fixes #149
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
interface/vmcs_host/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
index 22949a8..f8c2f2f 100755
--- a/interface/vmcs_host/CMakeLists.txt
+++ b/interface/vmcs_host/CMakeLists.txt
@@ -17,7 +17,7 @@ set(VCHOSTIF_SOURCE
# ${VMCS_TARGET}/vmcs_main.c
# vc_vchi_haud.c
-add_library(vchostif ${VCHOSTIF_SOURCE})
+add_library(vchostif SHARED ${VCHOSTIF_SOURCE})
#add_library(bufman vc_vchi_bufman.c )
--
2.8.0

View File

@ -33,6 +33,7 @@ SRC_URI = "\
file://0011-fix-cmake-dependency-race.patch \
file://0012-Fix-enum-conversion-warnings.patch \
file://0013-Fix-for-framerate-with-nested-composition.patch \
file://0014-build-shared-library-for-vchostif.patch \
file://0015-wl-dispmanx-buffer-wrapping.patch \
"
S = "${WORKDIR}/git"