summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-10-29 23:30:42 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2021-10-30 17:47:42 +0200
commit16dbcc605532bfa9da31b64c56cbba602f78be49 (patch)
tree4fde269acfe83ecfa6b4f6cb51bb134dae80ff8e
parent990e8e9cfecf72c63d9e6c6d0f6ed28831cf5477 (diff)
libgpg-error: Fix compiling with uclibc
Starting with version 1.33, libgpg-error dropped the first two parts of a four part "triplet" while canonicalizing CPU-VENDOR-KERNEL-SYSTEM. Therefore the resulting header name for arm-openadk-linux-uclibceabi becomes lock-obj-pub.linux-uclibceabi.h - make sure it exists by creating an appropriate symlink. Leave the old symlink name in place to avoid breaking any other triplet values. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--package/libgpg-error/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/libgpg-error/Makefile b/package/libgpg-error/Makefile
index 4c43978b9..496e69c82 100644
--- a/package/libgpg-error/Makefile
+++ b/package/libgpg-error/Makefile
@@ -61,9 +61,11 @@ LIBGPG_PREFIX:= x86_64-pc-linux-gnu
endif
post-extract:
- cd $(WRKSRC)/src/syscfg && \
+ cd $(WRKSRC)/src/syscfg && ( \
ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
- lock-obj-pub.$(GNU_TARGET_NAME).h
+ lock-obj-pub.$(GNU_TARGET_NAME).h ; \
+ ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
+ lock-obj-pub.$(ADK_TARGET_LINUXTYPE)-$(ADK_TARGET_SUFFIX).h )
libgpg-error-install:
${INSTALL_DIR} ${IDIR_LIBGPG_ERROR}/usr/lib