mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
tools: update hledgermac rule
This commit is contained in:
parent
fb8fa65f03
commit
d6ef9f3436
4
Makefile
4
Makefile
@ -66,9 +66,11 @@ hledgeropt: setversion
|
||||
ghc --make hledger.hs -o hledgeropt $(BUILDFLAGS) -O2 # -fvia-C # -fexcess-precision -optc-O3 -optc-ffast-math
|
||||
|
||||
# build a deployable binary for mac, one which uses only standard osx libs
|
||||
# use some trickery to link without gmp lib
|
||||
hledgermac: setversion
|
||||
ghc -c --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib
|
||||
sudo port deactivate gmp
|
||||
ghc --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib #-optl-F/Library/Frameworks/GMP
|
||||
-PATH=tools:$(PATH) ghc --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib
|
||||
sudo port activate gmp
|
||||
@echo Please check the build looks portable:
|
||||
otool -L $(BINARYFILENAME)
|
||||
|
3
tools/trhsx
Normal file
3
tools/trhsx
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# fake trhsx, to help "make hledgermac"
|
||||
cp $2 $3
|
Loading…
Reference in New Issue
Block a user