diff src/libgomp.mk @ 3903:385f5f4412b7

of-nurbs: fix cross compile, install libgomp's omp.h * src/of-nurbs.mk: make nurbs dependant on libgomp * src/of-nurbs-1-fixes.patch: update patch to use cross mkoctfile * src/libgomp.mk: update version to match gcc, install omp.h to HOST_INCDIR
author John Donoghue
date Tue, 14 Apr 2015 13:51:09 -0400
parents ed7c61a97068
children c7e31c07c915
line wrap: on
line diff
--- a/src/libgomp.mk	Mon Apr 13 13:52:59 2015 -0400
+++ b/src/libgomp.mk	Tue Apr 14 13:51:09 2015 -0400
@@ -3,7 +3,7 @@
 
 PKG             := libgomp
 $(PKG)_IGNORE    = $(build-gcc_IGNORE)
-$(PKG)_VERSION  := 4.7.0
+$(PKG)_VERSION  := $(build-gcc_VERSION)
 $(PKG)_CHECKSUM  = $(build-gcc_CHECKSUM)
 $(PKG)_SUBDIR    = $(build-gcc_SUBDIR)
 $(PKG)_FILE      = $(build-gcc_FILE)
@@ -33,6 +33,10 @@
     $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)'
     $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '1' install DESTDIR='$(3)'
 
+    # also copy omp.h to where other programs will see it
+    $(INSTALL) -d "$(3)$(HOST_INCDIR)" 
+    $(INSTALL) -m644 '$(1)/build/$(TARGET)/libgomp/omp.h' '$(3)$(HOST_INCDIR)/'
+
     #'$(MXE_CC)' \
     #    -W -Wall -Werror -ansi -pedantic \
     #    '$(2).c' -o '$(HOST_BINDIR)/test-libgomp.exe' \