changeset 4074:44b303c931fb

of-ltfat: changes to cross compile * mingw-of-ltfat-1-fixes.patch: new file
author John Donoghue
date Wed, 06 Jan 2016 15:59:41 -0500
parents 03ed5810b068
children 423925d2c032
files src/mingw-of-ltfat-1-fixes.patch
diffstat 1 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mingw-of-ltfat-1-fixes.patch	Wed Jan 06 15:59:41 2016 -0500
@@ -0,0 +1,36 @@
+diff -ur ltfat.org/src/Makefile_unix ltfat/src/Makefile_unix
+--- ltfat.org/src/Makefile_unix	2016-01-05 17:21:15.961378462 -0500
++++ ltfat/src/Makefile_unix	2016-01-05 17:24:30.278398266 -0500
+@@ -27,9 +27,11 @@
+ include comptarget.mk
+ 
+ # This is used for Octave mxe 
+-ifneq ($(OS),Windows_NT)
+-   CFLAGS+=-fPIC
+-endif
++#ifneq ($(OS),Windows_NT)
++#   CFLAGS+=-fPIC
++#endif
++AR ?= ar
++RANLIB ?= ranlib
+ 
+ # Used only in the shared library build
+ SHARED_FLAGS=-shared -Wl,--no-undefined -L"$(MATLABROOT)/bin/$(ARCH)" \
+@@ -50,13 +52,13 @@
+ shared: double_shared single_shared
+ 
+ double_static: $(DFILES) Makefile_unix
+-	ar rvu libltfat.a $(DFILES) 
+-	ranlib libltfat.a
++	$(AR) rvu libltfat.a $(DFILES) 
++	$(RANLIB) libltfat.a
+ 	cp -f libltfat.a ../lib
+ 
+ single_static: $(SFILES) Makefile_unix
+-	ar rvu libltfatf.a $(SFILES) 
+-	ranlib libltfatf.a
++	$(AR) rvu libltfatf.a $(SFILES) 
++	$(RANLIB) libltfatf.a
+ 	cp -f libltfatf.a ../lib
+ 
+ double_shared: $(DFILES) Makefile_unix