diff options
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index b48f5f4..6f6101c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -19,21 +19,29 @@ endif ifeq ("$(DC)","dmd") DCFLAGS=-O + LINKERFLAG=-L output=-of$@ else ifeq ("$(DC)","ldc") DCFLAGS=-O + LINKERFLAG=-L output=-of$@ else DCFLAGS=-O2 + LINKERFLAG=-Xlinker output=-o $@ endif ifeq ("$(OS)","Darwin") LDFLAGS+=-Wl,-undefined,dynamic_lookup else ifeq ("$(OS)","Linux") - LDFLAGS+=-L-ldl + LDFLAGS+=$(LINKERFLAG)-ldl endif +ifeq ("$(ARCH)", "x86_64") + DCFLAGS+=-m64 + LDFLAGS+=-m64 +endif + AR=ar RANLIB=ranlib |
