Mercurial > mxe-octave
annotate src/of-sockets-1-cross-fixes.patch @ 3919:282ca0892ed0
of-ga: add to mxe
* src/of-ga.mk: new file
* build_packages.m: add install of ga
* index.html: add of-ga
* Makefile.in: add ga
* dist-files.mk: add of-ga.mk
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 26 Apr 2015 09:30:29 -0400 |
parents | 9ceedf18871e |
children |
rev | line source |
---|---|
3854 | 1 diff -ur octave-sockets-1.2.0.orig/src/Makefile octave-sockets-1.2.0/src/Makefile |
2 --- octave-sockets-1.2.0.orig/src/Makefile 2015-03-20 10:24:40.824141293 -0400 | |
3 +++ octave-sockets-1.2.0/src/Makefile 2015-03-20 11:31:54.325799984 -0400 | |
4 @@ -8,12 +8,15 @@ | |
5 SRC := $(OCT:.oct=.cc) | |
6 | |
7 MKOCTFILE ?= mkoctfile -Wall | |
3858
9ceedf18871e
use OCTAVE_CONFIG as octave-config variable name
John Donoghue <john.donoghue@ieee.org>
parents:
3854
diff
changeset
|
8 +OCTAVE_CONFIG ?= octave-config |
3854 | 9 OCTAVE ?= octave |
10 | |
3858
9ceedf18871e
use OCTAVE_CONFIG as octave-config variable name
John Donoghue <john.donoghue@ieee.org>
parents:
3854
diff
changeset
|
11 +CANONICAL_HOST_TYPE := $(shell $(OCTAVE_CONFIG) -p CANONICAL_HOST_TYPE)) |
3854 | 12 + |
13 #The following is necessary to get the sockets package working in Windows. | |
14 #It has been tried on Win7 and XP, in Octave 3.8.0 using mxe-octave (mingw) | |
15 EXTRALIBS := | |
16 -ifeq ($(OS),Windows_NT) | |
17 +ifneq (,$(findstring mingw,$(CANONICAL_HOST_TYPE))) | |
18 EXTRALIBS := -lws2_32 | |
19 endif | |
20 |