Fixed focal glibc build issues for ubuntu and windows 15/273615/1
authorvarinder.p <varinder.p@samsung.com>
Fri, 8 Apr 2022 12:25:57 +0000 (17:55 +0530)
committervarinder.p <varinder.p@samsung.com>
Fri, 8 Apr 2022 12:26:15 +0000 (17:56 +0530)
Change-Id: I01c0787973d3e25544a7f793b5ea819dbfa5d5ec
Signed-off-by: varinder.p <varinder.p@samsung.com>
hw/9pfs/9p-maru.c
package/build.linux
qga/commands-posix.c
tizen/emulator_configure.sh
util/memfd.c

index 20d0d07..fb3502e 100644 (file)
@@ -54,6 +54,8 @@
 #define WIN32_D_TYPE 0
 
 extern uint64_t hostBytesPerSector;
+#elif CONFIG_LINUX
+#include <sys/sysmacros.h>
 #endif
 
 #ifdef CONFIG_DARWIN
index 5c47441..095c992 100755 (executable)
@@ -34,7 +34,7 @@ prepare()
        else
                # for linux target
 
-               REQUIRED_PKG="ant python zlib1g-dev libglib2.0-dev libsdl1.2-dev \
+               REQUIRED_PKG="ant python3 zlib1g-dev libglib2.0-dev libsdl1.2-dev \
                        libasound2-dev libx11-dev libv4l-dev libxcomposite-dev \
                        libpixman-1-dev libcurl4-gnutls-dev     libcap-dev libattr1-dev"
 
index ea37c09..be766c5 100644 (file)
@@ -40,6 +40,7 @@ extern char **environ;
 #include <arpa/inet.h>
 #include <sys/socket.h>
 #include <net/if.h>
+#include <sys/sysmacros.h>
 
 #ifdef FIFREEZE
 #define CONFIG_FSFREEZE
index b5d675e..107ac23 100755 (executable)
@@ -113,17 +113,21 @@ echo "$*"
 
 # avoid pkg-config bug on Windows
 if [ -z ${PKG_CONFIG_PATH} ] ; then
-export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
 export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
 else
-export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig:${PKG_CONFIG_LIBDIR}
 export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}
 fi
 
+if [ -z ${PKG_CONFIG_LIBDIR} ] ; then
+    if [ ! -z "$CROSS_PREFIX" ] ; then
+        export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
+    fi 
+fi
+
 # append common options
 CONFIGURE_APPEND="
  --target-list=$EMUL_TARGET_LIST
- --enable-werror
+ --disable-werror
  --enable-maru
  --enable-yagl
  --enable-vigs
index 4571d1a..d9c1657 100644 (file)
@@ -37,7 +37,7 @@
 #include <sys/syscall.h>
 #include <asm/unistd.h>
 
-static int memfd_create(const char *name, unsigned int flags)
+int memfd_create(const char *name, unsigned int flags)
 {
 #ifdef __NR_memfd_create
     return syscall(__NR_memfd_create, name, flags);