summaryrefslogtreecommitdiff
path: root/rts/Makefile
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-01-16 22:06:03 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-01-16 22:06:03 +0000
commit8b227d2ffdae9e3e2ed7ec5754c1e1a0cd3f977d (patch)
tree79fb821534a72853d8da882ce83fc4d09c5f11ea /rts/Makefile
parent7e4010e68c62f101d7de4eafd16dec94ea0085f0 (diff)
downloadhaskell-8b227d2ffdae9e3e2ed7ec5754c1e1a0cd3f977d.tar.gz
Add dyn-wrapper.c used as cross-plattform launch wrapper for executables using dynamic libraries in non-standard places
Diffstat (limited to 'rts/Makefile')
-rw-r--r--rts/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/Makefile b/rts/Makefile
index 74a37fdcb9..9e30a22e18 100644
--- a/rts/Makefile
+++ b/rts/Makefile
@@ -93,6 +93,15 @@ endif
EXCLUDED_SRCS += parallel/SysMan.c
+EXCLUDED_SRCS += dyn-wrapper.c
+
+# compile generatic patchable dyn-wrapper
+
+DYNWRAPPER_SRC = dyn-wrapper.c
+DYNWRAPPER_PROG = dyn-wrapper$(exeext)
+$(DYNWRAPPER_PROG): $(DYNWRAPPER_SRC)
+ $(HC) -cpp -optc-include -optcdyn-wrapper-patchable-behaviour.h $(INPLACE_EXTRA_FLAGS) $< -o $@
+
# The build system doesn't give us these
CMM_SRCS = $(filter-out AutoApply%.cmm, $(wildcard *.cmm)) $(EXTRA_CMM_SRCS)
CMM_OBJS = $(patsubst %.cmm,%.$(way_)o, $(CMM_SRCS))