diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-09-20 23:14:34 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-09-20 23:31:45 (GMT) |
commit | ca5ca55bb04bcb04a71da99a9de638f01b363410 (patch) | |
tree | 5aea52e81d598e40273d64d43c7d713759b106d4 /src/cimg-1-add-option-exe-suffix-exesfx.patch | |
parent | a65e97c541d9fd6a881771b89fa7190bdfc49650 (diff) | |
download | mxe-ca5ca55bb04bcb04a71da99a9de638f01b363410.zip mxe-ca5ca55bb04bcb04a71da99a9de638f01b363410.tar.gz mxe-ca5ca55bb04bcb04a71da99a9de638f01b363410.tar.bz2 |
add package cimg
Diffstat (limited to 'src/cimg-1-add-option-exe-suffix-exesfx.patch')
-rw-r--r-- | src/cimg-1-add-option-exe-suffix-exesfx.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/cimg-1-add-option-exe-suffix-exesfx.patch b/src/cimg-1-add-option-exe-suffix-exesfx.patch new file mode 100644 index 0000000..5760bc1 --- /dev/null +++ b/src/cimg-1-add-option-exe-suffix-exesfx.patch @@ -0,0 +1,52 @@ +This file is part of MXE. +See index.html for further information. + +From 68ca8760276836154d4cc09585c21771856c1cf8 Mon Sep 17 00:00:00 2001 +From: Boris Nagaev <bnagaev@gmail.com> +Date: Sun, 20 Sep 2015 18:18:36 +0300 +Subject: [PATCH] examples Makefile: add option exe suffix (EXESFX) + +On MinGW, `make Mwindows` produces executables without +.exe suffix. Makefile did not provide an option to set +the suffix of executables. + + $ make CC=i686-w64-mingw32.static-gcc EXESFX=.exe ... +--- + examples/Makefile | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/examples/Makefile b/examples/Makefile +index af16fdb..fda92d2 100644 +--- a/examples/Makefile ++++ b/examples/Makefile +@@ -88,6 +88,11 @@ CIMG_VERSION = _cimg_version + X11PATH = /usr/X11R6 + CC = g++ + EXEPFX = ++ifeq ($(MSYSTEM),MINGW32) ++EXESFX = .exe ++else ++EXESFX = ++endif + CCVER = $(CC) + ifeq ($(notdir $(CC)),g++) + CCVER = `$(CC) -v 2>&1 | tail -n 1` +@@ -248,13 +253,9 @@ endif + @echo + @echo "** Compiling '$* ($(CIMG_VERSION))' with '$(CCVER)'" + @echo +- $(CC) -o $(EXEPFX)$* $< $(CFLAGS) $(CONF_CFLAGS) $(LIBS) $(CONF_LIBS) ++ $(CC) -o $(EXEPFX)$*$(EXESFX) $< $(CFLAGS) $(CONF_CFLAGS) $(LIBS) $(CONF_LIBS) + ifeq ($(STRIP_EXE),true) +-ifeq ($(MSYSTEM),MINGW32) +- strip $(EXEPFX)$*.exe +-else +- strip $(EXEPFX)$* +-endif ++ strip $(EXEPFX)$*$(EXESFX) + endif + menu: + @echo +-- +1.9.1 + |