Skip to content

Commit

Permalink
add socket, needed by getifaddrs() and freeifaddr() (adding with -lso…
Browse files Browse the repository at this point in the history
…cket to LOCAL_LDLIBS as for the other libs fails and prints warnings as 'non-system libraries in linker flags: -lsocket - This is likely to result in incorrect builds' - therefore LOCAL_STATIC_LIBRARIES)
  • Loading branch information
r10s committed Mar 9, 2023
1 parent 5ecc8a5 commit 368f21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ LOCAL_MODULE := native-utils

LOCAL_C_INCLUDES := $(JNI_DIR)/utils/
LOCAL_LDLIBS := -ljnigraphics -llog -lz
LOCAL_STATIC_LIBRARIES := deltachat-core
LOCAL_STATIC_LIBRARIES := deltachat-core socket

LOCAL_CFLAGS := -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Os -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
LOCAL_CFLAGS += -Drestrict='' -D__EMX__ -DFIXED_POINT -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -fno-math-errno
Expand Down

0 comments on commit 368f21e

Please sign in to comment.