New attempt at running the haskell demangler

This commit is contained in:
Matt Godbolt
2017-10-25 23:19:40 -05:00
parent c82fa1db32
commit d7040b2ced
2 changed files with 8 additions and 2 deletions

1
haskell/.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.hi
*.o
*.so*
demangle

View File

@@ -1,6 +1,11 @@
GHC?=ghc
demangle: demangle.hs
$(GHC) -optl-static -optl-pthread -package ghc demangle.hs
$(GHC) -package ghc -dynamic demangle.hs -optl-Wl,-rpath,'$$ORIGIN'
ldd demangle \
| sed -n -e 's/.*=> \([^ ]*\) .*/\1/p' \
| egrep -v '^/lib' \
| xargs cp -t .
clean:
rm demangle.o demangle demangle.hi
rm -f demangle.o demangle demangle.hi *.so*