Mercurial > mxe-octave
view src/of-fl-core-1-fixes.patch @ 3968:d0d5dacd1941
octave: add msys2 patch
* src/mingw-default-octave-1-msys-fixes.patch: new file
* src/mingw-default-octave-1-msys-fixes.patch: new file
* dist-files.mk: add new patches
* src/default-octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw
* src/octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw
author | John Donoghue |
---|---|
date | Tue, 16 Jun 2015 11:43:16 -0400 |
parents | b36a7ab4bd2c |
children | 1c72016826aa |
line wrap: on
line source
diff -ur fl-core/src/Makefile fl-core.new/src/Makefile --- fl-core/src/Makefile 2011-02-06 14:09:03.000000000 -0500 +++ fl-core.new/src/Makefile 2015-03-20 13:45:48.577323118 -0400 @@ -1,15 +1,23 @@ OCT = fl_compose.oct SRC := $(OCT:.oct=.cc) BASE := $(OCT:.oct=) -ifdef COMSPEC + +MKOCTFILE ?= mkoctfile +OCTAVE_CONFIG ?= octave-config + +ifneq (,$(findstring mingw,$(shell $(OCTAVE_CONFIG) -p CANONICAL_HOST_TYPE))) + ADDPARAM := -lpthread +else + ifdef COMSPEC ADDPARAM := -lpthreadVC2 + endif endif .phony: all all: $(OCT) %.oct: %.cc - mkoctfile -s $< $(ADDPARAM) + $(MKOCTFILE) -s $< $(ADDPARAM) .phony: clean clean: