- Typo fix: copy headers to the correct location on the target.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 11:51:17 +0000 (11:51 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 11:51:17 +0000 (11:51 -0000)
package/gmp/gmp.mk
package/mpfr/mpfr.mk

index c74fd6eeb01b746fbfca69b8c715e611233f1107..2344b8d14ca536c0a7519a609dd20abc462de90b 100644 (file)
@@ -76,7 +76,8 @@ $(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION): $(STAGING_DIR)/lib/$(GMP_BINARY)
        cp -a $(STAGING_DIR)/lib/libgmp.so* $(STAGING_DIR)/lib/libgmp.a \
                 $(TARGET_DIR)/lib/
 ifeq ($(BR2_PACKAGE_GMP_HEADERS),y)
-       cp -a $(STAGING_DIR)/include/gmp.h $(TARGET_DIR)/include/
+       test -d $(TARGET_DIR)/usr/include || mkdir -p $(TARGET_DIR)/usr/include
+       cp -a $(STAGING_DIR)/include/gmp.h $(TARGET_DIR)/usr/include/
 endif
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgmp.so* \
                $(TARGET_DIR)/lib/libgmp.a
index ebc16738987ae34b874db1b94ac937329caa73b3..d31b13494651785ca558e86c12ecab5a29d00838 100644 (file)
@@ -83,7 +83,7 @@ $(TARGET_DIR)/lib/libmpfr.so.$(MPFR_LIBVERSION): $(STAGING_DIR)/lib/$(MPFR_BINAR
                $(TARGET_DIR)/lib/
 ifeq ($(BR2_PACKAGE_MPFR_HEADERS),y)
        cp -a $(STAGING_DIR)/include/mpfr.h $(STAGING_DIR)/include/mpf2mpfr.h \
-               $(TARGET_DIR)/include/
+               $(TARGET_DIR)/usr/include/
 endif
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libmpfr.so* \
                $(TARGET_DIR)/lib/libmpfr.a