forked from mirrors/linphone-iphone
start mingw32ce port
This commit is contained in:
parent
fbc81e885d
commit
e1bcdb20e9
3 changed files with 17 additions and 1 deletions
|
|
@ -98,6 +98,8 @@ case "$target_os" in
|
|||
AC_DEFINE(NOCONNECT,1,[Defined if we should not use connect() on udp sockets])
|
||||
PTHREAD_LDFLAGS="-pthread"
|
||||
;;
|
||||
*mingw32ce)
|
||||
CFLAGS="$CFLAGS -D_WIN32_WCE";;
|
||||
*mingw*)
|
||||
CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DORTP_STATIC"
|
||||
LIBS="$LIBS -lws2_32 -liphlpapi -lwinmm"
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ int WIN_thread_create(ortp_thread_t *th, void *attr, void * (*func)(void *), voi
|
|||
thread_param_t *params=ortp_new(thread_param_t,1);
|
||||
params->func=func;
|
||||
params->arg=data;
|
||||
*th=(HANDLE)_beginthreadex( NULL, 0, thread_starter, params, 0, NULL);
|
||||
*th=(HANDLE)_beginthreadex( NULL, 0, (LPTHREAD_START_ROUTINE)thread_starter, params, 0, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
14
linphone/scripts/cegcc-config.site
Normal file
14
linphone/scripts/cegcc-config.site
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# -*- shell-script -*-
|
||||
|
||||
|
||||
ARCH=arm4l
|
||||
SDK_BIN_PATH=/opt/mingw32ce/bin
|
||||
SYSROOT_PATH=/opt/mingw32ce
|
||||
|
||||
CC="${SDK_BIN_PATH}/arm-mingw32ce-gcc -std=c99 -isysroot=${SYSROOT_PATH}"
|
||||
LD="${SDK_BIN_PATH}/arm-mingw32ce-ld "
|
||||
AR=${SDK_BIN_PATH}/arm-mingw32ce-ar
|
||||
RANLIB=${SDK_BIN_PATH}/arm-mingw32ce-ranlib
|
||||
|
||||
CPPFLAGS="-Dasm=__asm"
|
||||
#LDFLAGS="-Wl,-syslibroot ${SYSROOT_PATH}"
|
||||
Loading…
Add table
Reference in a new issue