1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-15 22:38:20 +00:00

Support compile universal (#64)

Co-authored-by: yangheran <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-05-13 17:32:55 +08:00
committed by GitHub
parent 97e15aa5a9
commit d6ba8f60dc
2 changed files with 15 additions and 0 deletions

View File

@@ -42,6 +42,15 @@ AC_ARG_ENABLE(server-pkg,
AC_HELP_STRING([--enable-server-pkg], [enable static compile]),
[server_pkg=$enableval],[server_pkg="no"])
# option: compile-universal
# default: no
AC_ARG_ENABLE([compile-universal],
[AS_HELP_STRING([--enable-compile-universal],
[compile seafile universal @<:@default: no@:>@])],
[compile_universal=${enableval}], [compile_demo=no])
AM_CONDITIONAL([COMPILE_UNIVERSAL], [test x${compile_universal} = xyes])
dnl - check if the macro WIN32 is defined on this compiler.
AC_MSG_CHECKING(for WIN32)

View File

@@ -4,6 +4,12 @@ AM_CFLAGS = @GLIB_CFLAGS@ \
-I${top_builddir}/lib \
-I${top_srcdir}/lib
if MACOS
if COMPILE_UNIVERSAL
AM_CFLAGS += -arch x86_64 -arch arm64
endif
endif
lib_LTLIBRARIES = libsearpc.la
include_HEADERS = searpc-client.h searpc-server.h searpc-utils.h searpc.h searpc-named-pipe-transport.h