Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile_gmp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ first: all

all: Makefile $(TARGET)

static:
make all CXXFLAGS="-pipe -O3 -w -DGMP_BIGNUM -static" LFLAGS="-static"

$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)

Expand Down
3 changes: 3 additions & 0 deletions Makefile_nogmp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ first: all

all: Makefile $(TARGET)

static:
make all CXXFLAGS="-pipe -O3 -w -static" LFLAGS="-static"

$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ you must have the GMP library (libgmp-dev) installed. To use the version with GM
copy the Makefile_gmp to Makefile. Otherwise, copy Makefile_nogmp to Makefile and
proceed normally.

To compile this version of DSHARP simply run `make`
To compile this version of DSHARP simply run `make`.

To compile `DSHARP` statically, run `make static`

## Citing
```
Expand Down