aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlwin Esch <alwin.esch@web.de>2015-11-08 06:35:14 +0100
committerAlwin Esch <alwin.esch@web.de>2015-11-08 06:35:14 +0100
commit50614a95fa58a809ffeed240af88909596ab4030 (patch)
tree66531f98d761f4cc56fef66f5031ef2580ee5a52 /tools
parent127d4fc9a53bab691df024f74b3e9ed59909befe (diff)
[builddep] add calls to create missing headers on build for libgpg-error
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/libgpg-error/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/depends/target/libgpg-error/Makefile b/tools/depends/target/libgpg-error/Makefile
index d5111374a2..271e023b34 100644
--- a/tools/depends/target/libgpg-error/Makefile
+++ b/tools/depends/target/libgpg-error/Makefile
@@ -27,6 +27,14 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)
+ifeq ($(OS),osx)
+ $(MAKE) -C $(PLATFORM)/src gen-posix-lock-obj
+ $(PLATFORM)/src/gen-posix-lock-obj > $(PLATFORM)/src/syscfg/tmp.h
+ mv $(PLATFORM)/src/syscfg/tmp.h $(PLATFORM)/src/syscfg/$$(awk 'NR==1 {print $$2}' $(PLATFORM)/src/syscfg/tmp.h)
+endif
+ifeq ($(OS),android)
+ cp $(PLATFORM)/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $(PLATFORM)/src/syscfg/lock-obj-pub.linux-android.h
+endif
$(MAKE) -C $(PLATFORM)
.installed-$(PLATFORM): $(LIBDYLIB)