linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libgpiod,v1.6.x,0/3] build: fix compile issues against non-glibc
@ 2023-02-25  3:08 Benjamin Li
  2023-02-25  3:08 ` [libgpiod,v1.6.x,1/3] tools: use getprogname() when available to remove dependency on glibc Benjamin Li
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Benjamin Li @ 2023-02-25  3:08 UTC (permalink / raw)
  To: linux-gpio, Bartosz Golaszewski; +Cc: Benjamin Li

Fix issues when building against a C library other than glibc, such as
Android's Bionic libc. The basename() patch isn't needed on master.

A commit with a sample Android.bp file that's working against Android 11 is
included for informational purposes, which I don't expect Bartosz to pull.

Benjamin Li (3):
  tools: use getprogname() when available to remove dependency on glibc
  core: add missing #include for basename()
  build: add Android.bp to build within Android tree

 Android.bp           | 126 +++++++++++++++++++++++++++++++++++++++++++
 configure.ac         |   5 ++
 lib/core.c           |   1 +
 tools/gpiodetect.c   |   4 +-
 tools/gpiofind.c     |   4 +-
 tools/gpioget.c      |   4 +-
 tools/gpioinfo.c     |   4 +-
 tools/gpiomon.c      |   4 +-
 tools/gpioset.c      |   4 +-
 tools/tools-common.c |  12 +++--
 tools/tools-common.h |   4 +-
 11 files changed, 154 insertions(+), 18 deletions(-)
 create mode 100644 Android.bp

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-27 21:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-25  3:08 [libgpiod,v1.6.x,0/3] build: fix compile issues against non-glibc Benjamin Li
2023-02-25  3:08 ` [libgpiod,v1.6.x,1/3] tools: use getprogname() when available to remove dependency on glibc Benjamin Li
2023-02-25  3:08 ` [libgpiod,v1.6.x,2/3] core: add missing #include for basename() Benjamin Li
2023-02-25  3:08 ` [libgpiod,v1.6.x,3/3] build: add Android.bp to build within Android tree Benjamin Li
2023-02-25 14:10 ` [libgpiod,v1.6.x,0/3] build: fix compile issues against non-glibc Bartosz Golaszewski
2023-02-27 20:56   ` Benjamin Li
2023-02-27 21:01     ` Bartosz Golaszewski
2023-02-27 21:15       ` Benjamin Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).