Browse Source

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>
Phil Sutter 3 years ago
parent
commit
16dbcc6055
1 changed files with 4 additions and 2 deletions
  1. 4 2
      package/libgpg-error/Makefile

+ 4 - 2
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