summaryrefslogtreecommitdiff
path: root/package/imx-lib/patches/patch-pxp_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/imx-lib/patches/patch-pxp_Makefile')
-rw-r--r--package/imx-lib/patches/patch-pxp_Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/imx-lib/patches/patch-pxp_Makefile b/package/imx-lib/patches/patch-pxp_Makefile
new file mode 100644
index 000000000..b38c12807
--- /dev/null
+++ b/package/imx-lib/patches/patch-pxp_Makefile
@@ -0,0 +1,26 @@
+--- imx-lib-3.10.17-1.0.0.orig/pxp/Makefile 2014-01-16 15:27:12.000000000 +0100
++++ imx-lib-3.10.17-1.0.0/pxp/Makefile 2014-08-27 08:37:26.291432836 +0200
+@@ -15,18 +15,18 @@ ifeq ($(PLATFORM), $(findstring $(PLATFO
+ all: $(LIBNAME).so $(LIBNAME).a
+
+ install: install_headers
+- @mkdir -p $(DEST_DIR)/usr/lib
+- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib
++ @mkdir -p $(DESTDIR)/usr/lib
++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib
+
+ install_headers:
+- @mkdir -p $(DEST_DIR)/usr/include
+- cp pxp_lib.h $(DEST_DIR)/usr/include
++ @mkdir -p $(DESTDIR)/usr/include
++ cp pxp_lib.h $(DESTDIR)/usr/include
+ else
+ all install :
+ endif
+
+ %.o: %.c
+- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@
++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
+
+ $(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
+ $(CC) -shared -nostartfiles -Wl,-soname,$@ $(LFLAGS) $^ -o $@