summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-12-11 11:31:57 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-11 11:31:57 (GMT)
commit31395ccb11296aadd5fc90b0da837d1f34e62241 (patch)
treed0b89a37907bb39d150410b05f6e9bafce395c23
parentc35fc3fd7cd22eed6ee5ccd28898ad4a01e74288 (diff)
downloadmxe-31395ccb11296aadd5fc90b0da837d1f34e62241.zip
mxe-31395ccb11296aadd5fc90b0da837d1f34e62241.tar.gz
mxe-31395ccb11296aadd5fc90b0da837d1f34e62241.tar.bz2
package ocaml-flexdll: portability fixes
-rw-r--r--src/ocaml-flexdll.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ocaml-flexdll.mk b/src/ocaml-flexdll.mk
index ad469ea..9b8af29 100644
--- a/src/ocaml-flexdll.mk
+++ b/src/ocaml-flexdll.mk
@@ -23,7 +23,6 @@ define $(PKG)_BUILD
all
mkdir -p '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll'
cd '$(1)' && mv flexlink.exe flexlink
- cd '$(1)' && strip --remove-section=.comment --remove-section=.note flexlink
cd '$(1)' && $(INSTALL) -m 0755 flexdll.h '$(PREFIX)/$(TARGET)/include'
cd '$(1)' && $(INSTALL) -m 0755 flexlink flexdll_mingw.o \
flexdll_initer_mingw.o \
@@ -31,7 +30,7 @@ define $(PKG)_BUILD
# create flexdll scripts
cd '$(PREFIX)/bin' && ln -sf '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll/flexlink'
(echo '#!/bin/sh'; \
- echo 'exec flexlink -I $(PREFIX)/$(TARGET)/lib -chain mingw -nocygpath "$$@"') \
+ echo 'FLEXDIR="$(PREFIX)/$(TARGET)/lib/ocaml/flexdll" exec flexlink -I $(PREFIX)/$(TARGET)/lib -chain mingw -nocygpath "$$@"') \
> '$(PREFIX)/bin/$(TARGET)-flexlink'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-flexlink'