diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-10-10 17:10:34 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-10-10 17:10:34 +0800 |
commit | 27e9209dd57372f48f1c74338e05251a21809d34 (patch) | |
tree | 45d5cd914de858bc71927d33f65c35ff2560593f | |
parent | 7ce48e5ca9359335517852328e99798ff34817a7 (diff) |
User app would crash on Android without these lines
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 0da5a98..2e1e5d4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,8 @@ ACLOCAL_AMFLAGS = -I m4 lib_LTLIBRARIES = libmidtrans.la libmidtrans_la_SOURCES = midtrans.c libmidtrans_la_CPPFLAGS = $(DEPS_CFLAGS) +libmidtrans_la_LDFLAGS = $(DEPS_LIBS) if IOS -libmidtrans_la_LDFLAGS = -static +libmidtrans_la_LDFLAGS += -static endif include_HEADERS = midtrans.h diff --git a/configure.ac b/configure.ac index ac4d1eb..06c015f 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,7 @@ AM_CONDITIONAL([IOS], [test "x$ios" = xtrue]) AC_FUNC_MALLOC AC_FUNC_REALLOC AC_TYPE_SIZE_T +AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_MACRO_DIRS([m4]) AC_OUTPUT |