Skip to content

Commit 7a5d985

Browse files
mstyuramatthiasblaesing
authored andcommitted
Enable linker build-id for android builds.
1 parent 58655f7 commit 7a5d985

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Features
1212
* [#1595](https://github.com/java-native-access/jna/pull/1595): Add `IsProcessorFeaturePresent` to `c.s.j.p.win32.Kernel32` - [@dbwiddis](https://github.com/dbwiddis).
1313
* [#1602](https://github.com/java-native-access/jna/pull/1602): Add `XMoveWindow`, `XResizeWindow`, `XMoveResizeWindow`, `XRaiseWindow`, `XLowerWindow` X11 calls to `c.s.j.p.unix.X11` - [@vinceh121](https://github.com/vinceh121).
1414
* [#1613](https://github.com/java-native-access/jna/issues/1613): Added static helper method `Native#getNativeLibrary' for getting the underlying NativeLibrary instance from a Library interface instance or from a "registered" class - [@matthiasblaesing](https://github.com/matthiasblaesing).
15+
* [#1624](https://github.com/java-native-access/jna/pull/1624): Enable linker build-id for android builds - [@mstyura](https://github.com/mstyura).
1516

1617
Bug Fixes
1718
---------

native/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ COPT+=-fpic -ffunction-sections -funwind-tables -fno-short-enums
180180
JAVA_INCLUDES=
181181
CINCLUDES+=-I"$(NDK_PLATFORM)/arch-$(AARCH)/usr/include" # -I/usr/include
182182
LIBS=-nostdlib -L"$(NDK_PLATFORM)/arch-$(AARCH)$(ALIBDIR)/" -lgcc -lc -ldl -lm
183-
LDFLAGS+=-Wl,-shared,-Bsymbolic
183+
LDFLAGS+=-Wl,-shared,-Bsymbolic -Wl,--build-id=sha1
184184
FFI_ENV=CPP="$(CPP)" CC="$(CC)" CFLAGS="$(COPT) $(CDEBUG) $(CINCLUDES)" CPPFLAGS="$(CDEFINES) $(CINCLUDES)" LIBS="$(LIBS)" RANLIB="$(RANLIB)"
185185
FFI_CONFIG=--enable-static --disable-shared --with-pic=yes --host=$(HOST)
186186
endif

0 commit comments

Comments
 (0)