File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ GHC_VERSION := $(shell ghc --numeric-version)
6
6
DEFINES = -D__GLASGOW_HASKELL__=$(shell echo $(GHC_VERSION ) | sed -r 's/([0-9]+) \.([0-9])\.([0-9]+)/\10\2/;s/([0-9]+)\.([0-9]{2})\.([0-9]+)/\1\2/')
7
7
8
8
rts-loader : rts-loader.c
9
- gcc -g -I$(GHC_LIBDIR ) /include $(DEFINES ) $< -ldl -o $@
9
+ gcc -std=gnu99 -Wall - g -I$(GHC_LIBDIR ) /include $(DEFINES ) $< -ldl -o $@
10
10
11
11
libmain.so : Main.hs
12
12
ghc -dynamic -shared -fPIC -no-hs-main $< -o $@
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ buildLoaderExecutable pd lbi flags = do
58
58
includeOpts = map (" -I" ++ ) includes
59
59
libs = [" dl" ]
60
60
libOpts = map (" -l" ++ ) libs
61
- opts = [" -o" , targetDir </> exeName']
61
+ opts = [ " -std=gnu99"
62
+ , " -o" , targetDir </> exeName'
63
+ ]
62
64
++ includeOpts
63
65
++ libOpts
64
66
++ [modulePath]
You can’t perform that action at this time.
0 commit comments